Methods Summary |
---|
public boolean | equals(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.Long | getId()
return id;
|
public java.lang.String | getLastName()
return lastName;
|
public java.lang.String | getName()
return name;
|
public int | hashCode()
return (id != null ? id.hashCode() : 0);
|
public void | setId(java.lang.Long id)
this.id = id;
|
public void | setLastName(java.lang.String lastName)
this.lastName = lastName;
|
public void | setName(java.lang.String name)
this.name = name;
|
public java.lang.String | toString()
return "Person{" +
"id=" + id +
", name='" + name + '\'" +
", lastName='" + lastName + '\'" +
'}";
|