|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pushingpixels.flamingo.api.common.KeyValuePair<S,T>
S - Key class.T - Value class.public class KeyValuePair<S,T>
Generic key-value pair with optional property map.
| Field Summary | |
|---|---|
protected S |
key
Pair key. |
protected Map<String,Object> |
propMap
Property map. |
protected T |
value
Pair value. |
| Constructor Summary | |
|---|---|
KeyValuePair(S key,
T value)
Creates a new pair. |
|
| Method Summary | |
|---|---|
Object |
get(String propKey)
Returns the property attached to the specified key. |
S |
getKey()
Returns the pair key. |
Map<String,Object> |
getProps()
Returns all attached properties. |
T |
getValue()
Returns the pair value. |
void |
set(String propKey,
Object propValue)
Sets the property specified by the key and value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected S key
protected T value
protected Map<String,Object> propMap
| Constructor Detail |
|---|
public KeyValuePair(S key,
T value)
key - Pair key.value - Pair value.| Method Detail |
|---|
public T getValue()
public S getKey()
public Object get(String propKey)
propKey - Property key.
public void set(String propKey,
Object propValue)
propKey - Property key.propValue - Property value.public Map<String,Object> getProps()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||