public abstract class Person extends UntypedData implements java.io.Serializable, java.lang.Comparable<UntypedData>
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
UNKNOWN |
ALL_RIGHTS_RESERVED, EMPTY, string| Constructor and Description |
|---|
Person(java.lang.String addressLine,
java.lang.String zip,
java.lang.String country)
Constructor for Person with specified values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(UntypedData datatype) |
boolean |
equals(java.lang.Object obj) |
protected java.lang.String |
formatEmptyString(java.lang.String string)
Format address strings in person object set empty strings to n/a
|
java.lang.String |
getAddressLine()
Getter for the field
adress_line. |
java.lang.String |
getCountry()
Getter for the field
country. |
java.lang.String |
getZip()
Getter for the field
zip. |
int |
hashCode() |
java.lang.String |
toString() |
getString, setString, toHTMLprotected static final java.lang.String UNKNOWN
public int hashCode()
hashCode in class UntypedDatapublic boolean equals(java.lang.Object obj)
equals in class UntypedDatapublic int compareTo(UntypedData datatype)
compareTo in interface java.lang.Comparable<UntypedData>compareTo in class UntypedDataprotected java.lang.String formatEmptyString(java.lang.String string)
string - the to formatpublic java.lang.String getAddressLine()
adress_line.public java.lang.String getCountry()
country.public java.lang.String getZip()
zip.public java.lang.String toString()
toString in class UntypedData