com.planet_ink.coffee_mud.core.collections
Class PairSVector<T,K>
java.lang.Object
com.planet_ink.coffee_mud.core.collections.SVector<Pair<T,K>>
com.planet_ink.coffee_mud.core.collections.PairSVector<T,K>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable<Pair<T,K>>, java.util.Collection<Pair<T,K>>, java.util.List<Pair<T,K>>, java.util.RandomAccess
public final class PairSVector<T,K>
- extends SVector<Pair<T,K>>
- See Also:
- Serialized Form
| Methods inherited from class com.planet_ink.coffee_mud.core.collections.SVector |
add, add, addAll, addAll, addAll, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, copyOf, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAll, removeAll, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, toVector, trimToSize |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PairSVector
public PairSVector()
getFirstConverter
public final Pair.FirstConverter<T,K> getFirstConverter()
getSecondConverter
public final Pair.SecondConverter<T,K> getSecondConverter()
firstElements
public final java.util.Enumeration<T> firstElements()
secondElements
public final java.util.Enumeration<K> secondElements()
firstIterator
public final java.util.Iterator<T> firstIterator()
secondIterator
public final java.util.Iterator<K> secondIterator()
indexOfFirst
public int indexOfFirst(T t)
indexOfSecond
public int indexOfSecond(K k)
getFirst
public T getFirst(int index)
getSecond
public K getSecond(int index)
add
public void add(T t,
K k)
addElement
public void addElement(T t,
K k)
containsFirst
public boolean containsFirst(T t)
containsSecond
public boolean containsSecond(K k)
elementAtFirst
public T elementAtFirst(int index)
elementAtSecond
public K elementAtSecond(int index)
indexOfFirst
public int indexOfFirst(T t,
int index)
indexOfSecond
public int indexOfSecond(K k,
int index)
lastIndexOfFirst
public int lastIndexOfFirst(T t,
int index)
lastIndexOfSecond
public int lastIndexOfSecond(K k,
int index)
lastIndexOfFirst
public int lastIndexOfFirst(T t)
lastIndexOfSecond
public int lastIndexOfSecond(K k)
removeFirst
public boolean removeFirst(T t)
removeSecond
public boolean removeSecond(K k)
removeElementFirst
public boolean removeElementFirst(T t)
removeElementSecond
public boolean removeElementSecond(K k)
firstFirstElement
public T firstFirstElement(int index)
firstSecondElement
public K firstSecondElement(int index)
lastFirstElement
public T lastFirstElement(int index)
lastSecondElement
public K lastSecondElement(int index)
toArrayFirst
public T[] toArrayFirst(T[] a)
toArraySecond
public K[] toArraySecond(K[] a)