Package com.adaptris.util
Class KeyValuePairSet
- java.lang.Object
-
- java.util.AbstractCollection<KeyValuePair>
-
- com.adaptris.util.KeyValuePairBag
-
- com.adaptris.util.KeyValuePairSet
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<KeyValuePair>,java.util.Collection<KeyValuePair>,java.util.Set<KeyValuePair>
public class KeyValuePairSet extends KeyValuePairBag implements java.util.Set<KeyValuePair>, java.io.Serializable
A Set of
KeyValuePairinstances.- See Also:
- Serialized Form
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 Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddKeyValuePair(KeyValuePair pair)Add a KeyValuePair to the collectionbooleanequals(java.lang.Object o)java.util.Set<KeyValuePair>getKeyValuePairs()Returns the underlying Collection of KeyValuePair instancesbooleanremoveAll(java.util.Collection<?> c)-
Methods inherited from class com.adaptris.util.KeyValuePairBag
add, addAll, addAll, asMap, asProperties, contains, getKeyValuePair, getValue, getValueIgnoringKeyCase, hashCode, iterator, removeKeyValuePair, removeKeyValuePair, setKeyValuePairs, size, toString
-
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray
-
-
-
-
Constructor Detail
-
KeyValuePairSet
public KeyValuePairSet()
Creates a new instance.
-
KeyValuePairSet
public KeyValuePairSet(java.util.Collection<KeyValuePair> pairs)
-
KeyValuePairSet
public KeyValuePairSet(java.util.Properties properties)
-
KeyValuePairSet
public KeyValuePairSet(java.util.Map<java.lang.String,java.lang.String> map)
-
-
Method Detail
-
getKeyValuePairs
public java.util.Set<KeyValuePair> getKeyValuePairs()
Description copied from class:KeyValuePairBagReturns the underlying Collection of KeyValuePair instances- Specified by:
getKeyValuePairsin classKeyValuePairBag- Returns:
- underlying
SetofKeyValuePairs
-
addKeyValuePair
public void addKeyValuePair(KeyValuePair pair)
Description copied from class:KeyValuePairBagAdd a KeyValuePair to the collection
- Specified by:
addKeyValuePairin classKeyValuePairBag- Parameters:
pair- theKeyValuePairto add, may not be null
-
equals
public boolean equals(java.lang.Object o)
Description copied from class:KeyValuePairBag- Specified by:
equalsin interfacejava.util.Collection<KeyValuePair>- Specified by:
equalsin interfacejava.util.Set<KeyValuePair>- Overrides:
equalsin classKeyValuePairBag
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
The behaviour of this method is the same as
AbstractSet.removeAll(Collection)- Specified by:
removeAllin interfacejava.util.Collection<KeyValuePair>- Specified by:
removeAllin interfacejava.util.Set<KeyValuePair>- Overrides:
removeAllin classjava.util.AbstractCollection<KeyValuePair>- See Also:
AbstractSet.removeAll(Collection)
-
-