|
Configuration Platform SDK 7.6 API Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.commons.collections.Pair
com.genesyslab.platform.commons.collections.KeyValuePair
The pair specific for KeyValueCollection. Please see {com.genesyslab.platform.commons.collections.KeyValueCollection TKVList} documentation for the list of supported value types. TKVList supports pairs with string keys only. Neither key nor value is allowed to be null.
Constructor Summary | |
KeyValuePair(java.lang.String key)
Create empty Pair. |
|
KeyValuePair(java.lang.String key,
byte[] value)
Create Pair with binary data. |
|
KeyValuePair(java.lang.String key,
int value)
Create Pair with integer data. |
|
KeyValuePair(java.lang.String key,
KeyValueCollection value)
Create Pair with TKV data. |
|
KeyValuePair(java.lang.String key,
java.lang.String value)
Create Pair with string data. |
|
KeyValuePair(java.lang.String key,
java.lang.String value,
boolean isWideString)
Create Pair with string (possibly unicode) data. |
Method Summary | |
KeyValueCollection |
getTKVValue()
Return TKVList value of the Pair or null
if the value is not TKVList . |
void |
setTKVValue(KeyValueCollection val)
Set value of this Pair to TKVList |
Methods inherited from class com.genesyslab.platform.commons.collections.Pair |
equals, getBinaryValue, getIntValue, getStringKey, getStringValue, getValue, getValueType, hashCode, setBinaryValue, setIntValue, setIntValue, setStringValue, setUTF16Value, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public KeyValuePair(java.lang.String key)
key
- Key for the Pair
java.lang.NullPointerException
- if key is nullpublic KeyValuePair(java.lang.String key, byte[] value)
key
- Key for the Pairvalue
- Value of the Pair
java.lang.NullPointerException
- if either key or value is nullpublic KeyValuePair(java.lang.String key, int value)
key
- Key for the Pairvalue
- Value of the Pair
java.lang.NullPointerException
- if either key or value is nullpublic KeyValuePair(java.lang.String key, java.lang.String value)
key
- Key for the Pairvalue
- Value of the Pair
java.lang.NullPointerException
- if either key or value is nullpublic KeyValuePair(java.lang.String key, java.lang.String value, boolean isWideString)
key
- Key for the Pairvalue
- Value of the PairisWideString
- true - if string should be serialized in unicode,
false - if in single-byte encoding
java.lang.NullPointerException
- if either key or value is nullpublic KeyValuePair(java.lang.String key, KeyValueCollection value)
key
- Key for the Pairvalue
- Value of the Pair
java.lang.NullPointerException
- if either key or value is nullMethod Detail |
public KeyValueCollection getTKVValue()
TKVList
value of the Pair or null
if the value is not TKVList
.
public void setTKVValue(KeyValueCollection val)
val
- new value (TKVList)
java.lang.NullPointerException
- if val is null
|
Configuration Platform SDK 7.6 API Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |