Package com.adaptris.util
Class KeyValuePairCollection
- java.lang.Object
-
- java.util.AbstractCollection<KeyValuePair>
-
- com.adaptris.util.KeyValuePairBag
-
- com.adaptris.util.KeyValuePairCollection
-
- All Implemented Interfaces:
java.lang.Iterable<KeyValuePair>
,java.util.Collection<KeyValuePair>
public class KeyValuePairCollection extends KeyValuePairBag
An collection of KeyValuePair instances.
In the adapter configuration file this class is aliased as key-value-pair-collection which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description KeyValuePairCollection()
KeyValuePairCollection(java.util.Collection<KeyValuePair> pairs)
KeyValuePairCollection(java.util.Map<java.lang.String,java.lang.String> map)
KeyValuePairCollection(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 collectionjava.util.Collection<KeyValuePair>
getKeyValuePairs()
Returns the underlying Collection of KeyValuePair instances-
Methods inherited from class com.adaptris.util.KeyValuePairBag
add, addAll, addAll, asMap, asProperties, contains, equals, getKeyValuePair, getValue, getValueIgnoringKeyCase, hashCode, iterator, removeKeyValuePair, removeKeyValuePair, setKeyValuePairs, size, toString
-
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
KeyValuePairCollection
public KeyValuePairCollection()
-
KeyValuePairCollection
public KeyValuePairCollection(java.util.Collection<KeyValuePair> pairs)
-
KeyValuePairCollection
public KeyValuePairCollection(java.util.Properties properties)
-
KeyValuePairCollection
public KeyValuePairCollection(java.util.Map<java.lang.String,java.lang.String> map)
-
-
Method Detail
-
getKeyValuePairs
public java.util.Collection<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
-
-