at.molindo.utils.data
Class ArrayPairList<K,V>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Pair<K,V>>
at.molindo.utils.data.ArrayPairList<K,V>
- All Implemented Interfaces:
- PairList<K,V>, Serializable, Cloneable, Iterable<Pair<K,V>>, Collection<Pair<K,V>>, List<Pair<K,V>>, RandomAccess
public class ArrayPairList<K,V>
- extends ArrayList<Pair<K,V>>
- implements PairList<K,V>
- See Also:
- Serialized Form
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize |
| Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
ArrayPairList
public ArrayPairList(int initialCapacity)
ArrayPairList
public ArrayPairList()
ArrayPairList
public ArrayPairList(K[] keys,
V[] values)
ArrayPairList
public ArrayPairList(List<K> keys,
List<V> values)
ArrayPairList
public ArrayPairList(Collection<? extends Pair<K,V>> c)
- Constructs a list containing the elements of the specified collection, in
the order they are returned by the collection's iterator.
- Parameters:
c - the collection whose elements are to be placed into this list
- Throws:
NullPointerException - if the specified collection is null
create
public static <K,V> ArrayPairList<K,V> create()
createWithCapacity
public static <K,V> ArrayPairList<K,V> createWithCapacity(int size)
create
public static <K,V> ArrayPairList<K,V> create(K[] keys,
V[] values)
create
public static <K,V> ArrayPairList<K,V> create(List<K> keys,
List<V> values)
put
public void put(K key,
V value)
- Specified by:
put in interface PairList<K,V>
Copyright © 2013 Molindo GmbH. All Rights Reserved.