|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.japaki.beans.KeyValuePair<K,V>
public class KeyValuePair<K,V>
A bean with two properties.
| Constructor Summary | |
|---|---|
KeyValuePair()
|
|
| Method Summary | ||
|---|---|---|
boolean |
equals(Object obj)
|
|
K |
getKey()
|
|
static
|
getKeyProperty()
Returns the property to the key of this bean. |
|
V |
getValue()
|
|
static
|
getValueProperty()
Returns the property to the value of this bean. |
|
int |
hashCode()
|
|
static
|
newInstance(K key,
V value)
Creates a new key value pair |
|
K |
setKey(K key)
Replaces the key corresponding to this bean with the specified key. |
|
V |
setValue(V value)
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KeyValuePair()
| Method Detail |
|---|
public static <K,V> KeyValuePair<K,V> newInstance(K key,
V value)
key - initial value of the key propertyvalue - initial value of the value propertypublic K getKey()
getKey in interface Map.Entry<K,V>public K setKey(K key)
KeyValueBean
setKey in interface KeyValueBean<K,V>key - new key to be stored in this beanpublic V getValue()
getValue in interface Map.Entry<K,V>public V setValue(V value)
setValue in interface Map.Entry<K,V>public int hashCode()
hashCode in interface Map.Entry<K,V>hashCode in class Objectpublic boolean equals(Object obj)
equals in interface Map.Entry<K,V>equals in class Objectpublic String toString()
toString in class Objectpublic static final <K> Property<KeyValueBean<K,?>,K> getKeyProperty()
public static final <V> Property<Map.Entry<?,V>,V> getValueProperty()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||