PairList<T,K>
, java.io.Serializable
, java.lang.Cloneable
, java.lang.Iterable<Pair<T,K>>
, java.util.Collection<Pair<T,K>>
, java.util.List<Pair<T,K>>
, java.util.RandomAccess
public class PairArrayList<T,K> extends java.util.ArrayList<Pair<T,K>> implements PairList<T,K>
Constructor | Description |
---|---|
PairArrayList() |
|
PairArrayList(int x) |
|
PairArrayList(java.util.List<Pair<T,K>> initial) |
Modifier and Type | Method | Description |
---|---|---|
void |
add(T t,
K k) |
|
void |
addElement(T t,
K k) |
|
boolean |
contains(java.lang.Object o) |
|
boolean |
containsFirst(T t) |
|
boolean |
containsSecond(K k) |
|
T |
elementAtFirst(int index) |
|
K |
elementAtSecond(int index) |
|
java.util.Enumeration<Pair<T,K>> |
elements() |
|
Pair<T,K> |
firstElement() |
|
java.util.Enumeration<T> |
firstElements() |
|
T |
firstFirstElement(int index) |
|
java.util.Iterator<T> |
firstIterator() |
|
K |
firstSecondElement(int index) |
|
T |
getFirst(int index) |
|
Pair.FirstConverter<T,K> |
getFirstConverter() |
|
K |
getSecond(int index) |
|
Pair.SecondConverter<T,K> |
getSecondConverter() |
|
int |
indexOf(java.lang.Object o) |
|
int |
indexOfFirst(T t) |
|
int |
indexOfFirst(T t,
int index) |
|
int |
indexOfSecond(K k) |
|
int |
indexOfSecond(K k,
int index) |
|
Pair<T,K> |
lastElement() |
|
T |
lastFirstElement(int index) |
|
int |
lastIndexOfFirst(T t) |
|
int |
lastIndexOfFirst(T t,
int index) |
|
int |
lastIndexOfSecond(K k) |
|
int |
lastIndexOfSecond(K k,
int index) |
|
K |
lastSecondElement(int index) |
|
boolean |
removeElementFirst(T t) |
|
boolean |
removeElementSecond(K k) |
|
boolean |
removeFirst(T t) |
|
boolean |
removeSecond(K k) |
|
java.util.Enumeration<K> |
secondElements() |
|
java.util.Iterator<K> |
secondIterator() |
|
T[] |
toArrayFirst(T[] objs) |
|
K[] |
toArraySecond(K[] objs) |
add, add, addAll, addAll, clear, clone, ensureCapacity, forEach, get, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public Pair.FirstConverter<T,K> getFirstConverter()
getFirstConverter
in interface PairList<T,K>
public Pair.SecondConverter<T,K> getSecondConverter()
getSecondConverter
in interface PairList<T,K>
public java.util.Enumeration<T> firstElements()
public java.util.Enumeration<K> secondElements()
public java.util.Iterator<T> firstIterator()
firstIterator
in interface PairList<T,K>
public java.util.Iterator<K> secondIterator()
secondIterator
in interface PairList<T,K>
public int indexOfFirst(T t)
indexOfFirst
in interface PairList<T,K>
public int indexOfSecond(K k)
indexOfSecond
in interface PairList<T,K>
public boolean contains(java.lang.Object o)
public int indexOf(java.lang.Object o)
public boolean containsFirst(T t)
containsFirst
in interface PairList<T,K>
public boolean containsSecond(K k)
containsSecond
in interface PairList<T,K>
public T elementAtFirst(int index)
elementAtFirst
in interface PairList<T,K>
public K elementAtSecond(int index)
elementAtSecond
in interface PairList<T,K>
public int indexOfFirst(T t, int index)
indexOfFirst
in interface PairList<T,K>
public int indexOfSecond(K k, int index)
indexOfSecond
in interface PairList<T,K>
public int lastIndexOfFirst(T t, int index)
lastIndexOfFirst
in interface PairList<T,K>
public int lastIndexOfSecond(K k, int index)
lastIndexOfSecond
in interface PairList<T,K>
public int lastIndexOfFirst(T t)
lastIndexOfFirst
in interface PairList<T,K>
public int lastIndexOfSecond(K k)
lastIndexOfSecond
in interface PairList<T,K>
public boolean removeFirst(T t)
removeFirst
in interface PairList<T,K>
public boolean removeSecond(K k)
removeSecond
in interface PairList<T,K>
public boolean removeElementFirst(T t)
removeElementFirst
in interface PairList<T,K>
public boolean removeElementSecond(K k)
removeElementSecond
in interface PairList<T,K>
public T firstFirstElement(int index)
public K firstSecondElement(int index)
public T lastFirstElement(int index)
public K lastSecondElement(int index)
public T[] toArrayFirst(T[] objs)
toArrayFirst
in interface PairList<T,K>