public class KeyValuePairSet extends KeyValuePairBag implements java.util.Set<KeyValuePair>, java.io.Serializable
A Set of KeyValuePair
instances.
In the adapter configuration file this class is aliased as key-value-pair-set which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
KeyValuePairSet()
Creates a new instance.
|
KeyValuePairSet(java.util.Collection<KeyValuePair> pairs) |
KeyValuePairSet(java.util.Map<java.lang.String,java.lang.String> map) |
KeyValuePairSet(java.util.Properties properties) |
Modifier and Type | Method and Description |
---|---|
void |
addKeyValuePair(KeyValuePair pair)
Add a KeyValuePair to the collection
|
boolean |
equals(java.lang.Object o) |
java.util.Set<KeyValuePair> |
getKeyValuePairs()
Returns the underlying Collection of KeyValuePair
instances
|
boolean |
removeAll(java.util.Collection<?> c) |
add, addAll, addAll, asMap, asProperties, contains, getKeyValuePair, getValue, getValueIgnoringKeyCase, hashCode, iterator, removeKeyValuePair, removeKeyValuePair, setKeyValuePairs, size, toString
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public KeyValuePairSet()
Creates a new instance.
public KeyValuePairSet(java.util.Collection<KeyValuePair> pairs)
public KeyValuePairSet(java.util.Properties properties)
public KeyValuePairSet(java.util.Map<java.lang.String,java.lang.String> map)
public java.util.Set<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 nullpublic boolean equals(java.lang.Object o)
KeyValuePairBag
equals
in interface java.util.Collection<KeyValuePair>
equals
in interface java.util.Set<KeyValuePair>
equals
in class KeyValuePairBag
public boolean removeAll(java.util.Collection<?> c)
The behaviour of this method is the same as
AbstractSet.removeAll(Collection)
removeAll
in interface java.util.Collection<KeyValuePair>
removeAll
in interface java.util.Set<KeyValuePair>
removeAll
in class java.util.AbstractCollection<KeyValuePair>
AbstractSet.removeAll(Collection)