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 PairVector<T,K> extends java.util.Vector<Pair<T,K>> implements PairList<T,K>
Constructor | Description |
---|---|
PairVector() |
|
PairVector(int x) |
|
PairVector(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<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 |
indexOf(java.lang.Object o,
int index) |
|
int |
indexOfFirst(T t) |
|
int |
indexOfFirst(T t,
int index) |
|
int |
indexOfSecond(K k) |
|
int |
indexOfSecond(K k,
int index) |
|
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, containsAll, equals, get, hashCode, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, addElement, capacity, clear, clone, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, 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 int indexOf(java.lang.Object o, int index)
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>