java.util.Collection<Pair<T,K>>
, java.lang.Iterable<Pair<T,K>>
, java.util.List<Pair<T,K>>
PairArrayList
, PairCMList
, PairSLinkedList
, PairSVector
, PairVector
, SPairList
public interface PairList<T,K> extends java.util.List<Pair<T,K>>
Modifier and Type | Method | Description |
---|---|---|
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) |
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
Pair.FirstConverter<T,K> getFirstConverter()
Pair.SecondConverter<T,K> getSecondConverter()
java.util.Iterator<T> firstIterator()
java.util.Iterator<K> secondIterator()
int indexOfFirst(T t)
int indexOfSecond(K k)
T getFirst(int index)
K getSecond(int index)
boolean containsFirst(T t)
boolean containsSecond(K k)
T elementAtFirst(int index)
K elementAtSecond(int index)
int indexOfFirst(T t, int index)
int indexOfSecond(K k, int index)
int lastIndexOfFirst(T t, int index)
int lastIndexOfSecond(K k, int index)
int lastIndexOfFirst(T t)
int lastIndexOfSecond(K k)
boolean removeFirst(T t)
boolean removeSecond(K k)
boolean removeElementFirst(T t)
boolean removeElementSecond(K k)