AttachmentCollection
public class KeyValueCollection extends KVList
getEnumeration(String)
if you need all pairs
with the given key.KVList.PairList
Modifier | Constructor | Description |
---|---|---|
|
KeyValueCollection() |
Creates new empty list.
|
protected |
KeyValueCollection(KeyValueCollection list) |
Creates list from another list.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addList(java.lang.String key,
KeyValueCollection list) |
Adds TKV list to this list under specified key.
|
void |
addObject(java.lang.String key,
java.lang.Object value) |
Adds supported value to this list with specified key.
|
void |
addPair(KeyValuePair pair) |
Adds TKV pair to the list.
|
protected Pair |
createPair(java.lang.Object key) |
Creates list specific Pair implementation.
|
KeyValueCollection |
getList(java.lang.String key) |
Returns list value stored with specified key.
|
KeyValuePair |
getPair(java.lang.String key) |
Returns TKV pair stored with specified key.
|
KeyValuePair |
remove(java.lang.String key) |
Removes the pair with the specified String key from this list.
|
protected void |
throwNotPair(java.lang.Object o) |
Checks that Object inserted to this KVList through Collection interface
is appropriate Pair implementation (e.g.
|
java.lang.String |
toString() |
|
java.lang.String |
toStringLine() |
add, addAll, addBinary, addInt, addInt, addString, addUTFString, addUTFString, clear, clone, contains, containsAll, containsKey, equals, getAsString, getBinary, getComparator, getEnumeration, getEnumeration, getInt, getPairEnumeration, getString, hashCode, isEmpty, iterator, length, remove, removeAll, removePair, retainAll, setComparator, size, toArray, toArray
public KeyValueCollection()
protected KeyValueCollection(KeyValueCollection list)
list
- list to create this list from.public void addPair(KeyValuePair pair)
pair
- TKV valuepublic KeyValuePair getPair(java.lang.String key)
key
- key of the pairpublic KeyValuePair remove(java.lang.String key)
key
- the key of the pair to be removedpublic void addList(java.lang.String key, KeyValueCollection list)
key
- the key of the list to be addedlist
- the list to addpublic KeyValueCollection getList(java.lang.String key)
key
- the key of the valuepublic void addObject(java.lang.String key, java.lang.Object value) throws java.lang.IllegalArgumentException
KVList
KVList.addUTFString(String, String)
.public java.lang.String toStringLine()
protected Pair createPair(java.lang.Object key)
KVList
createPair
in class KVList
key
- key of the pair to createprotected void throwNotPair(java.lang.Object o)
KVList
throwNotPair
in class KVList
o
- Object to insertSend comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.