public class KeyValuePair extends Pair
Constructor | Description |
---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, equals, getBinaryValue, getIntValue, getStringKey, getStringValue, getValue, getValueAsString, getValueType, hashCode, setBinaryValue, setIntValue, setIntValue, setStringValue, setUTF16Value, setUTF16Value, setValue, toString
public KeyValuePair(java.lang.String key)
key
- Key for the Pairjava.lang.NullPointerException
- if key is nullpublic KeyValuePair(java.lang.String key, byte[] value)
key
- Key for the Pairvalue
- Value of the Pairjava.lang.NullPointerException
- if either key or value is nullpublic KeyValuePair(java.lang.String key, int value)
key
- Key for the Pairvalue
- Value of the Pairjava.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 Pairjava.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 encodingjava.lang.NullPointerException
- if either key or value is nullpublic KeyValuePair(java.lang.String key, KeyValueCollection value)
key
- Key for the Pairvalue
- Value of the Pairjava.lang.NullPointerException
- if either key or value is nullpublic 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 nullSend comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.