|
|||||||||
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 java.util.Map<java.lang.String,java.lang.Object> |
propMap
Property map. |
protected T |
value
Pair value. |
Constructor Summary | |
---|---|
KeyValuePair(S key,
T value)
Creates a new pair. |
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.String propKey)
Returns the property attached to the specified key. |
S |
getKey()
Returns the pair key. |
java.util.Map<java.lang.String,java.lang.Object> |
getProps()
Returns all attached properties. |
T |
getValue()
Returns the pair value. |
void |
set(java.lang.String propKey,
java.lang.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 java.util.Map<java.lang.String,java.lang.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 java.lang.Object get(java.lang.String propKey)
propKey
- Property key.
public void set(java.lang.String propKey, java.lang.Object propValue)
propKey
- Property key.propValue
- Property value.public java.util.Map<java.lang.String,java.lang.Object> getProps()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |