public class KeyValuePairCollection extends KeyValuePairBag
An collection of KeyValuePair instances.
In the adapter configuration file this class is aliased as key-value-pair-collection which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
KeyValuePairCollection() |
KeyValuePairCollection(java.util.Collection<KeyValuePair> pairs) |
KeyValuePairCollection(java.util.Map<java.lang.String,java.lang.String> map) |
KeyValuePairCollection(java.util.Properties properties) |
Modifier and Type | Method and Description |
---|---|
void |
addKeyValuePair(KeyValuePair pair)
Add a KeyValuePair to the collection
|
java.util.Collection<KeyValuePair> |
getKeyValuePairs()
Returns the underlying Collection of KeyValuePair
instances
|
add, addAll, addAll, asMap, asProperties, contains, equals, getKeyValuePair, getValue, getValueIgnoringKeyCase, hashCode, iterator, removeKeyValuePair, removeKeyValuePair, setKeyValuePairs, size, toString
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
public KeyValuePairCollection()
public KeyValuePairCollection(java.util.Collection<KeyValuePair> pairs)
public KeyValuePairCollection(java.util.Properties properties)
public KeyValuePairCollection(java.util.Map<java.lang.String,java.lang.String> map)
public java.util.Collection<KeyValuePair> getKeyValuePairs()
KeyValuePairBag
getKeyValuePairs
in class KeyValuePairBag
Set
of KeyValuePair
spublic void addKeyValuePair(KeyValuePair pair)
KeyValuePairBag
Add a KeyValuePair to the collection
addKeyValuePair
in class KeyValuePairBag
pair
- the KeyValuePair
to add, may not be null