|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Pair | |
|---|---|
| types | |
| util | |
| Uses of Pair in types |
|---|
| Methods in types that return Pair | |
|---|---|
Pair<Integer,Integer> |
GUIAttributes.getIntegerPair(String attr)
Retrieve, as a pair of integers, the value of an attribute which only allows exactly two values. |
| Uses of Pair in util |
|---|
| Methods in util that return Pair | ||
|---|---|---|
Pair<Opt,String>[] |
CommandLineParser.getOpts()
Retrieve the options found by the last call to CommandLineParser.parse(Object, String[]). |
|
static
|
Pair.of(A a,
B b)
A more readable synonym for pair(A, B). |
|
static
|
Pair.pair(A a,
B b)
A convenience method so that the types of the elements don't have to be given explicitly. |
|
static
|
Functional.separate(C coll,
Predicate<T> pred)
Divide a collection into those elements satisfying and those not satisfying a given predicate, returning two arrays. |
|
static
|
Functional.separate(C coll,
Predicate<T> pred,
C1 tgtTrue,
C2 tgtFalse)
Divide a collection into those elements satisfying and those not satisfying a given predicate. |
|
static
|
Functional.separate(T[] arr,
Predicate<T> pred)
Divide an array into those elements satisfying and those not satisfying a given predicate, returning two arrays. |
|
static
|
Functional.separate(T[] arr,
Predicate<T> pred,
C1 tgtTrue,
C2 tgtFalse)
Divide an array into those elements satisfying and those not satisfying a given predicate. |
|
static
|
Functional.span(C coll,
Predicate<T> pred)
Split a collection at the first element not satisfying a predicate, returning two arrays. |
|
static
|
Functional.span(C coll,
Predicate<T> pred,
C1 tgt1,
C2 tgt2)
Split a collection at the first element not satisfying a predicate. |
|
static
|
Functional.span(T[] arr,
Predicate<T> pred)
Split an array at the first element not satisfying a predicate, returning two arrays. |
|
static
|
Functional.span(T[] arr,
Predicate<T> pred,
C1 tgt1,
C2 tgt2)
Split an array at the first element not satisfying a predicate. |
|
| Methods in util that return types with arguments of type Pair | ||
|---|---|---|
static
|
Functional.enumerate(Iterable<T> coll)
Iterate over (index, element) pairs corresponding to each element of an iterable with its index. |
|
static
|
Functional.enumerate(T[] arr)
Iterate over (index, element) pairs corresponding to each element of an array with its index. |
|
Iterator<Pair<A,B>> |
Functional.Zipper.iterator()
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||