Methods Summary |
---|
public boolean | equals(java.lang.Object that)
if ( !(that instanceof Address) ) return false;
Address address = (Address) that;
return address.getType().equals(type) &&
address.getPerson().getName().equals( person.getName() );
|
public Person | getPerson()
return person;
|
public java.lang.String | getState()
return state;
|
public java.lang.String | getStreet()
return street;
|
public java.lang.String | getType()
return type;
|
public java.lang.String | getZip()
return zip;
|
public int | hashCode()
return person.getName().hashCode() + type.hashCode();
|
public void | setPerson(Person person)
this.person = person;
|
public void | setState(java.lang.String state)
this.state = state;
|
public void | setStreet(java.lang.String street)
this.street = street;
|
public void | setType(java.lang.String type)
this.type = type;
|
public void | setZip(java.lang.String zip)
this.zip = zip;
|