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
KeyValuePair
instances.- 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 void
addKeyValuePair(KeyValuePair pair)
Add a KeyValuePair to the collectionboolean
equals(java.lang.Object o)
java.util.Set<KeyValuePair>
getKeyValuePairs()
Returns the underlying Collection of KeyValuePair instancesboolean
removeAll(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:KeyValuePairBag
Returns the underlying Collection of KeyValuePair instances- Specified by:
getKeyValuePairs
in classKeyValuePairBag
- Returns:
- underlying
Set
ofKeyValuePair
s
-
addKeyValuePair
public void addKeyValuePair(KeyValuePair pair)
Description copied from class:KeyValuePairBag
Add a KeyValuePair to the collection
- Specified by:
addKeyValuePair
in classKeyValuePairBag
- Parameters:
pair
- theKeyValuePair
to add, may not be null
-
equals
public boolean equals(java.lang.Object o)
Description copied from class:KeyValuePairBag
- Specified by:
equals
in interfacejava.util.Collection<KeyValuePair>
- Specified by:
equals
in interfacejava.util.Set<KeyValuePair>
- Overrides:
equals
in classKeyValuePairBag
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
The behaviour of this method is the same as
AbstractSet.removeAll(Collection)
- Specified by:
removeAll
in interfacejava.util.Collection<KeyValuePair>
- Specified by:
removeAll
in interfacejava.util.Set<KeyValuePair>
- Overrides:
removeAll
in classjava.util.AbstractCollection<KeyValuePair>
- See Also:
AbstractSet.removeAll(Collection)
-
-