com.planet_ink.coffee_mud.core.collections
Interface PairList<T,K>

All Superinterfaces:
java.util.Collection<Pair<T,K>>, java.lang.Iterable<Pair<T,K>>, java.util.List<Pair<T,K>>
All Known Implementing Classes:
PairCMList, PairSLinkedList, PairSVector, PairVector, SPairList

public interface PairList<T,K>
extends java.util.List<Pair<T,K>>


Method Summary
 void add(T t, K k)
           
 boolean containsFirst(T t)
           
 boolean containsSecond(K k)
           
 T elementAtFirst(int index)
           
 K elementAtSecond(int index)
           
 java.util.Iterator<T> firstIterator()
           
 T getFirst(int index)
           
 Pair.FirstConverter<T,K> getFirstConverter()
           
 K getSecond(int index)
           
 Pair.SecondConverter<T,K> getSecondConverter()
           
 int indexOfFirst(T t)
           
 int indexOfFirst(T t, int index)
           
 int indexOfSecond(K k)
           
 int indexOfSecond(K k, int index)
           
 int lastIndexOfFirst(T t)
           
 int lastIndexOfFirst(T t, int index)
           
 int lastIndexOfSecond(K k)
           
 int lastIndexOfSecond(K k, int index)
           
 boolean removeElementFirst(T t)
           
 boolean removeElementSecond(K k)
           
 boolean removeFirst(T t)
           
 boolean removeSecond(K k)
           
 java.util.Iterator<K> secondIterator()
           
 T[] toArrayFirst(T[] a)
           
 K[] toArraySecond(K[] a)
           
 
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
 

Method Detail

getFirstConverter

Pair.FirstConverter<T,K> getFirstConverter()

getSecondConverter

Pair.SecondConverter<T,K> getSecondConverter()

firstIterator

java.util.Iterator<T> firstIterator()

secondIterator

java.util.Iterator<K> secondIterator()

indexOfFirst

int indexOfFirst(T t)

indexOfSecond

int indexOfSecond(K k)

getFirst

T getFirst(int index)

getSecond

K getSecond(int index)

add

void add(T t,
         K k)

containsFirst

boolean containsFirst(T t)

containsSecond

boolean containsSecond(K k)

elementAtFirst

T elementAtFirst(int index)

elementAtSecond

K elementAtSecond(int index)

indexOfFirst

int indexOfFirst(T t,
                 int index)

indexOfSecond

int indexOfSecond(K k,
                  int index)

lastIndexOfFirst

int lastIndexOfFirst(T t,
                     int index)

lastIndexOfSecond

int lastIndexOfSecond(K k,
                      int index)

lastIndexOfFirst

int lastIndexOfFirst(T t)

lastIndexOfSecond

int lastIndexOfSecond(K k)

removeFirst

boolean removeFirst(T t)

removeSecond

boolean removeSecond(K k)

removeElementFirst

boolean removeElementFirst(T t)

removeElementSecond

boolean removeElementSecond(K k)

toArrayFirst

T[] toArrayFirst(T[] a)

toArraySecond

K[] toArraySecond(K[] a)