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, toStringaddAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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()
KeyValuePairBaggetKeyValuePairs in class KeyValuePairBagSet of KeyValuePairspublic void addKeyValuePair(KeyValuePair pair)
KeyValuePairBagAdd a KeyValuePair to the collection
addKeyValuePair in class KeyValuePairBagpair - the KeyValuePair to add, may not be nullpublic boolean equals(java.lang.Object o)
KeyValuePairBagequals in interface java.util.Collection<KeyValuePair>equals in interface java.util.Set<KeyValuePair>equals in class KeyValuePairBagpublic 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)