|
Platform SDK Java 8.5 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
public class 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.
Field Summary |
---|
Fields inherited from class com.genesyslab.platform.commons.collections.Pair |
---|
key, value |
Constructor Summary | |
---|---|
KeyValuePair(java.lang.String key)
Creates empty Pair. |
|
KeyValuePair(java.lang.String key,
byte[] value)
Creates Pair with binary data. |
|
KeyValuePair(java.lang.String key,
int value)
Creates Pair with integer data. |
|
KeyValuePair(java.lang.String key,
KeyValueCollection value)
Creates Pair with TKV data. |
|
KeyValuePair(java.lang.String key,
java.lang.String value)
Creates Pair with string data. |
|
KeyValuePair(java.lang.String key,
java.lang.String value,
boolean isWideString)
Creates Pair with string (possibly unicode) data. |
Method Summary | |
---|---|
KeyValueCollection |
getTKVValue()
Returns TKVList value of the Pair or null
if the value is not TKVList . |
void |
setTKVValue(KeyValueCollection val)
Sets value of this Pair to TKVList. |
Methods inherited from class com.genesyslab.platform.commons.collections.Pair |
---|
clone, equals, getBinaryValue, getIntValue, getStringKey, getStringValue, getValue, getValueType, hashCode, setBinaryValue, setIntValue, setIntValue, setStringValue, setUTF16Value, setUTF16Value, setValue, toString |
Methods inherited from class java.lang.Object |
---|
finalize, 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
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |