|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcorny.addressbook.data.Address
public class Address
Data model class which represents Address Book Addresses. Contains fields for street, zip, city, country and country code.
| Field Summary | |
|---|---|
static int |
NO_ZIP
Indicates that no ZIP value was specified. |
| Constructor Summary | |
|---|---|
Address(java.util.Map<?,?> rawAddress)
Creates a new Address instance out of the raw data from Apple's Address Book. |
|
Address(java.lang.String street,
int zip,
java.lang.String city,
java.lang.String countryCode,
java.lang.String country)
Creates a new Address instance |
|
| Method Summary | |
|---|---|
void |
addSearchStringsToList(java.util.List<java.lang.Object> searchObjects,
java.lang.String propertyLabel)
Used by Filter classes to fetch the searchable fields of an object. |
boolean |
equals(java.lang.Object other)
Returns true if the instances are the same, if the attributes of the two Address instances are the same or if the String representations are the same. |
boolean |
equalsIgnoreCase(java.lang.Object other)
Compares this IgnoreCaseComparable to an Object ignoring case. |
java.lang.String |
getCity()
|
java.lang.String |
getCountry()
|
java.lang.String |
getCountryCode()
|
java.lang.String |
getStreet()
|
int |
getZip()
|
MutableAddress |
mutableClone()
Returns a mutable clone of this Address instance. |
java.util.Map<java.lang.String,java.lang.String> |
toMap()
|
java.lang.String |
toString()
|
java.lang.String |
toStringWithLineBreak()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_ZIP
| Constructor Detail |
|---|
public Address(java.lang.String street,
int zip,
java.lang.String city,
java.lang.String countryCode,
java.lang.String country)
street - Streetzip - ZIP. Pass NO_ZIP if you don't want to specify a ZIP
value.city - CitycountryCode - Country codecountry - Countrypublic Address(java.util.Map<?,?> rawAddress)
rawAddress - Raw address data| Method Detail |
|---|
public java.lang.String getStreet()
public int getZip()
public java.lang.String getCity()
public java.lang.String getCountry()
public java.lang.String getCountryCode()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringWithLineBreak()
public java.util.Map<java.lang.String,java.lang.String> toMap()
public void addSearchStringsToList(java.util.List<java.lang.Object> searchObjects,
java.lang.String propertyLabel)
Searchable
addSearchStringsToList in interface SearchablesearchObjects - List to add the searchable fields topropertyLabel - If this is set, only the properties with a specific label
should be added to the list.public boolean equalsIgnoreCase(java.lang.Object other)
IgnoreCaseComparable
equalsIgnoreCase in interface IgnoreCaseComparableother - Object to compare to this instance
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - Other Object
public MutableAddress mutableClone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||