|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object corny.addressbook.data.MultiValue.KeyValuePair<T>
T
- Type of Value in this KeyValuePairpublic static class MultiValue.KeyValuePair<T>
Data model class for key / value properties of Address Book contacts, like a phone number.
Constructor Summary | |
---|---|
MultiValue.KeyValuePair(MultiValue.MultiValueLabel key,
T value)
Creates a new KeyValuePair with a default label. |
|
MultiValue.KeyValuePair(java.lang.String key,
T value)
Creates a new KeyValuePair with a custom label. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if the instances are the same or if the the keys and values are equal. |
java.lang.String |
getKey()
|
T |
getValue()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiValue.KeyValuePair(java.lang.String key, T value)
key
- Custom keyvalue
- Valuepublic MultiValue.KeyValuePair(MultiValue.MultiValueLabel key, T value)
MultiValue.MultiValueLabel
for the available default labels.
key
- Labelvalue
- ValueMethod Detail |
---|
public java.lang.String getKey()
public T getValue()
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 |