Package com.adaptris.util
Class KeyValuePairList
- java.lang.Object
-
- java.util.AbstractCollection<KeyValuePair>
-
- com.adaptris.util.KeyValuePairBag
-
- com.adaptris.util.KeyValuePairList
-
- All Implemented Interfaces:
java.lang.Iterable<KeyValuePair>
,java.util.Collection<KeyValuePair>
,java.util.List<KeyValuePair>
public class KeyValuePairList extends KeyValuePairBag implements java.util.List<KeyValuePair>
An
List
of KeyValuePair instances.In the adapter configuration file this class is aliased as key-value-pair-list which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description KeyValuePairList()
KeyValuePairList(java.util.Collection<KeyValuePair> pairs)
KeyValuePairList(java.util.Map<java.lang.String,java.lang.String> map)
KeyValuePairList(java.util.Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, KeyValuePair element)
boolean
addAll(int index, java.util.Collection<? extends KeyValuePair> c)
void
addKeyValuePair(KeyValuePair pair)
Add a KeyValuePair to the collectionKeyValuePair
get(int index)
java.util.List<KeyValuePair>
getKeyValuePairs()
Returns the underlying Collection of KeyValuePair instancesint
indexOf(java.lang.Object o)
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator<KeyValuePair>
listIterator()
java.util.ListIterator<KeyValuePair>
listIterator(int index)
KeyValuePair
remove(int index)
KeyValuePair
set(int index, KeyValuePair element)
java.util.List<KeyValuePair>
subList(int fromIndex, int toIndex)
-
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
-
-
-
-
Constructor Detail
-
KeyValuePairList
public KeyValuePairList()
-
KeyValuePairList
public KeyValuePairList(java.util.Collection<KeyValuePair> pairs)
-
KeyValuePairList
public KeyValuePairList(java.util.Properties properties)
-
KeyValuePairList
public KeyValuePairList(java.util.Map<java.lang.String,java.lang.String> map)
-
-
Method Detail
-
getKeyValuePairs
public java.util.List<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
-
add
public void add(int index, KeyValuePair element)
- Specified by:
add
in interfacejava.util.List<KeyValuePair>
-
addAll
public boolean addAll(int index, java.util.Collection<? extends KeyValuePair> c)
- Specified by:
addAll
in interfacejava.util.List<KeyValuePair>
-
get
public KeyValuePair get(int index)
- Specified by:
get
in interfacejava.util.List<KeyValuePair>
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interfacejava.util.List<KeyValuePair>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interfacejava.util.List<KeyValuePair>
-
listIterator
public java.util.ListIterator<KeyValuePair> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<KeyValuePair>
-
listIterator
public java.util.ListIterator<KeyValuePair> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<KeyValuePair>
-
remove
public KeyValuePair remove(int index)
- Specified by:
remove
in interfacejava.util.List<KeyValuePair>
-
set
public KeyValuePair set(int index, KeyValuePair element)
- Specified by:
set
in interfacejava.util.List<KeyValuePair>
-
subList
public java.util.List<KeyValuePair> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfacejava.util.List<KeyValuePair>
-
-