CList<Pair<T,K>>
, PairList<T,K>
, java.io.Serializable
, java.lang.Iterable<Pair<T,K>>
, java.util.Collection<Pair<T,K>>
, java.util.List<Pair<T,K>>
, java.util.RandomAccess
SPairList
public class PairSVector<T,K> extends SVector<Pair<T,K>> implements java.util.List<Pair<T,K>>, PairList<T,K>
Constructor | Description |
---|---|
PairSVector() |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
add, add, addAll, addAll, addAll, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, copyOf, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAll, removeAll, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toVector, 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 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>