Package com.adaptris.util
Class KeyValuePairSet
java.lang.Object
java.util.AbstractCollection<KeyValuePair>
com.adaptris.util.KeyValuePairBag
com.adaptris.util.KeyValuePairSet
- All Implemented Interfaces:
Serializable
,Iterable<KeyValuePair>
,Collection<KeyValuePair>
,Set<KeyValuePair>
A Set of KeyValuePair
instances.
- See Also:
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
ConstructorDescriptionCreates a new instance.KeyValuePairSet
(Collection<KeyValuePair> pairs) KeyValuePairSet
(Map<String, String> map) KeyValuePairSet
(Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addKeyValuePair
(KeyValuePair pair) Add a KeyValuePair to the collectionboolean
Returns the underlying Collection of KeyValuePair instancesboolean
removeAll
(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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
KeyValuePairSet
public KeyValuePairSet()Creates a new instance.
-
KeyValuePairSet
-
KeyValuePairSet
-
KeyValuePairSet
-
-
Method Details
-
getKeyValuePairs
Description copied from class:KeyValuePairBag
Returns the underlying Collection of KeyValuePair instances- Specified by:
getKeyValuePairs
in classKeyValuePairBag
- Returns:
- underlying
Set
ofKeyValuePair
s
-
addKeyValuePair
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
Description copied from class:KeyValuePairBag
- Specified by:
equals
in interfaceCollection<KeyValuePair>
- Specified by:
equals
in interfaceSet<KeyValuePair>
- Overrides:
equals
in classKeyValuePairBag
-
removeAll
The behaviour of this method is the same as
AbstractSet.removeAll(Collection)
- Specified by:
removeAll
in interfaceCollection<KeyValuePair>
- Specified by:
removeAll
in interfaceSet<KeyValuePair>
- Overrides:
removeAll
in classAbstractCollection<KeyValuePair>
- See Also:
-