org.apache.commons.lang3.Bean.java Source code

Java tutorial

Introduction

Here is the source code for org.apache.commons.lang3.Bean.java

Source

package org.apache.commons.lang3;

/**
 * Dimit 2015113
 */
public class Bean implements Cloneable {
    private int id;
    private String name;

    public Bean(int id, String name) {
        this.id = id;
        this.name = name;
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "Bean [id=" + id + ", name=" + name + "]";
    }
}