at.molindo.utils.data
Class ArrayPairList<K,V>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Pair<K,V>>
              extended by 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

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ArrayPairList()
           
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.
ArrayPairList(int initialCapacity)
           
ArrayPairList(K[] keys, V[] values)
           
ArrayPairList(List<K> keys, List<V> values)
           
 
Method Summary
static
<K,V> ArrayPairList<K,V>
create()
           
static
<K,V> ArrayPairList<K,V>
create(K[] keys, V[] values)
           
static
<K,V> ArrayPairList<K,V>
create(List<K> keys, List<V> values)
           
static
<K,V> ArrayPairList<K,V>
createWithCapacity(int size)
           
 void put(K key, V value)
           
 
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 class java.util.AbstractList
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
containsAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

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
Method Detail

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.