|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcorny.addressbook.data.MultiValue<T>
T
- Type of Values in this MultiValue instancepublic class MultiValue<T>
Data model class for multi value properties of Address Book contacts, like a list of phone numbers.
Nested Class Summary | |
---|---|
static class |
MultiValue.KeyValuePair<T>
Data model class for key / value properties of Address Book contacts, like a phone number. |
static class |
MultiValue.MultiValueLabel
Enumeration which declares the default MultiValue labels |
Constructor Summary | |
---|---|
MultiValue(java.util.List<MultiValue.KeyValuePair<T>> pairs)
Creates a new MultiValue instance containing the given KeyValuePairs. |
Method Summary | |
---|---|
void |
addSearchStringsToList(java.util.List<java.lang.Object> list,
java.lang.String propertyLabel)
Used by Filter classes to fetch the searchable fields of an object. |
boolean |
equals(java.lang.Object obj)
Returns true if the instances are the same or if the KeyValuePairs equal pairwise. |
T |
getFirstHomeValue()
|
T |
getFirstMobileValue()
|
T |
getFirstValue()
|
T |
getFirstWorkValue()
|
java.util.List<MultiValue.KeyValuePair<T>> |
getValues(java.lang.String key)
Returns all KeyValuePairs with the given key. |
java.util.Iterator<MultiValue.KeyValuePair<T>> |
iterator()
|
MutableMultiValue<T> |
mutableClone()
|
int |
size()
|
java.lang.String |
toString()
|
static java.lang.String |
translateBackwards(java.lang.String key)
Translates the human readable key text back to the Apple Address Book's internal description text. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MultiValue(java.util.List<MultiValue.KeyValuePair<T>> pairs)
pairs
- KeyValuePairs for the new MultiValue instanceMethod Detail |
---|
public static java.lang.String translateBackwards(java.lang.String key)
key
- Key to translate
public java.util.Iterator<MultiValue.KeyValuePair<T>> iterator()
iterator
in interface java.lang.Iterable<MultiValue.KeyValuePair<T>>
public java.lang.String toString()
toString
in class java.lang.Object
public void addSearchStringsToList(java.util.List<java.lang.Object> list, java.lang.String propertyLabel)
Searchable
addSearchStringsToList
in interface Searchable
list
- 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 java.util.List<MultiValue.KeyValuePair<T>> getValues(java.lang.String key)
key
- Key of the desired KeyValuePairs
public int size()
public T getFirstValue()
public T getFirstHomeValue()
public T getFirstWorkValue()
public T getFirstMobileValue()
public MutableMultiValue<T> mutableClone()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Other object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |