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 and Description |
---|
KeyValuePairList() |
KeyValuePairList(java.util.Collection<KeyValuePair> pairs) |
KeyValuePairList(java.util.Map<java.lang.String,java.lang.String> map) |
KeyValuePairList(java.util.Properties properties) |
Modifier and Type | Method and 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 collection
|
KeyValuePair |
get(int index) |
java.util.List<KeyValuePair> |
getKeyValuePairs()
Returns the underlying Collection of KeyValuePair
instances
|
int |
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) |
add, addAll, addAll, asMap, asProperties, contains, equals, getKeyValuePair, getValue, getValueIgnoringKeyCase, hashCode, iterator, removeKeyValuePair, removeKeyValuePair, setKeyValuePairs, size, toString
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public KeyValuePairList()
public KeyValuePairList(java.util.Collection<KeyValuePair> pairs)
public KeyValuePairList(java.util.Properties properties)
public KeyValuePairList(java.util.Map<java.lang.String,java.lang.String> map)
public java.util.List<KeyValuePair> getKeyValuePairs()
KeyValuePairBag
getKeyValuePairs
in class KeyValuePairBag
Set
of KeyValuePair
spublic void addKeyValuePair(KeyValuePair pair)
KeyValuePairBag
Add a KeyValuePair to the collection
addKeyValuePair
in class KeyValuePairBag
pair
- the KeyValuePair
to add, may not be nullpublic void add(int index, KeyValuePair element)
add
in interface java.util.List<KeyValuePair>
public boolean addAll(int index, java.util.Collection<? extends KeyValuePair> c)
addAll
in interface java.util.List<KeyValuePair>
public KeyValuePair get(int index)
get
in interface java.util.List<KeyValuePair>
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<KeyValuePair>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<KeyValuePair>
public java.util.ListIterator<KeyValuePair> listIterator()
listIterator
in interface java.util.List<KeyValuePair>
public java.util.ListIterator<KeyValuePair> listIterator(int index)
listIterator
in interface java.util.List<KeyValuePair>
public KeyValuePair remove(int index)
remove
in interface java.util.List<KeyValuePair>
public KeyValuePair set(int index, KeyValuePair element)
set
in interface java.util.List<KeyValuePair>
public java.util.List<KeyValuePair> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<KeyValuePair>