A - a generic placeholder for any type which will be the first of the
          Pair.B - a generic placeholder for any type which will be the second of the
          Pairpublic interface PairList<A,B> extends java.util.List<Pair<A,B>>
| Modifier and Type | Method and Description | 
|---|---|
| boolean | containsFirstType(A a)Returns true if the list conatains an object of type Pair whose first component matches the argument. | 
| boolean | containsSecondType(B b)Returns true if the list conatains an object of type Pair whose second component matches the argument. | 
| int | indexOfFirstType(A a)Returns the index of the first occurrence of the specified element in
 this list, or -1 if this list does not contain the element. | 
| int | indexOfSecondType(B b)Returns the index of the first occurrence of the specified element in
 this list, or -1 if this list does not contain the element. | 
| int | lastIndexOfFirstType(A a)Returns the index of the last occurrence of the specified element, where
 the first element matches the first element of the entry in this
 list, or -1 if this list does not contain the element. | 
| int | lastIndexOfSecondType(B b)Returns the index of the last occurrence of the specified element, where
 the second element matches the second element of the entry in this
 list, or -1 if this list does not contain the element. | 
| boolean | removeByFirstType(A a)Removes the first occurence of a Pair whose first matches the first of an
 entry in the list. | 
| boolean | removeBySecondType(B b)Removes the first occurence of a Pair whose second element matches the second of
 Pair entry in the list. | 
int indexOfFirstType(A a)
a - int indexOfSecondType(B b)
b - int lastIndexOfFirstType(A a)
a - int lastIndexOfSecondType(B b)
b - boolean removeByFirstType(A a)
a - The object of type A to be removed.boolean removeBySecondType(B b)
b - The object of type B to be removed.boolean containsFirstType(A a)
a - The object to lookup, standard arraylist semantics for equality are used.boolean containsSecondType(B b)
b - The object to lookup, standard arraylist semantics for equality are used.