Class KeyValuePair<S,T>
java.lang.Object
org.pushingpixels.flamingo.api.common.KeyValuePair<S,T>
- Type Parameters:
S- Key class.T- Value class.
- Direct Known Subclasses:
StringValuePair
Generic key-value pair with optional property map.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
key
Pair key. -
value
Pair value. -
propMap
Property map.
-
-
Constructor Details
-
KeyValuePair
Creates a new pair.- Parameters:
key- Pair key.value- Pair value.
-
-
Method Details
-
getValue
Returns the pair value.- Returns:
- Pair value.
-
getKey
Returns the pair key.- Returns:
- Pair key.
-
get
Returns the property attached to the specified key.- Parameters:
propKey- Property key.- Returns:
- Attached property.
-
set
Sets the property specified by the key and value.- Parameters:
propKey- Property key.propValue- Property value.
-
getProps
Returns all attached properties.- Returns:
- All attached properties.
-