|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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>
PairList extends List interface to support Pair types which are in turn made of two arbitrary types. The PairList fills a gap between Lists and Maps. Maps do not allow duplicate but sometimes we would like to have a list that supports name-value pairs, with searching, deleting etcs by either name or value, and yet have the semantics of a 'List', and allow duplicate names. the PairList attepmts to fill this need.
| Method Summary | |
|---|---|
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. |
| 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 |
|---|
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.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||