FileDocCategorySizeDatePackage
Person.javaAPI DocApache Struts 2.0.9 Apps2246Mon Jul 23 13:43:26 BST 2007org.apache.struts2.showcase.person

Person

public class Person extends Object

Fields Summary
Long
id
String
name
String
lastName
Constructors Summary
public Person()

    
public Person(Long id, String name, String lastName)

        this.id = id;
        this.name = name;
        this.lastName = lastName;
    
Methods Summary
public booleanequals(java.lang.Object o)

        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        final Person person = (Person) o;

        if (id != null ? !id.equals(person.id) : person.id != null) return false;

        return true;
    
public java.lang.LonggetId()

        return id;
    
public java.lang.StringgetLastName()

        return lastName;
    
public java.lang.StringgetName()

        return name;
    
public inthashCode()

        return (id != null ? id.hashCode() : 0);
    
public voidsetId(java.lang.Long id)

        this.id = id;
    
public voidsetLastName(java.lang.String lastName)

        this.lastName = lastName;
    
public voidsetName(java.lang.String name)

        this.name = name;
    
public java.lang.StringtoString()

        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'" +
                ", lastName='" + lastName + '\'" +
                '}";