Uses of Class
util.Pair

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
<A,B> Pair<A,B>
Pair.of(A a, B b)
          A more readable synonym for pair(A, B).
static
<A,B> Pair<A,B>
Pair.pair(A a, B b)
          A convenience method so that the types of the elements don't have to be given explicitly.
static
<T,C extends Collection<T>>
Pair<T[],T[]>
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
<T,C extends Collection<T>,C1 extends Collection<T>,C2 extends Collection<T>>
Pair<C1,C2>
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
<T> Pair<T[],T[]>
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
<T,C1 extends Collection<T>,C2 extends Collection<T>>
Pair<C1,C2>
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
<T,C extends Collection<T>>
Pair<T[],T[]>
Functional.span(C coll, Predicate<T> pred)
          Split a collection at the first element not satisfying a predicate, returning two arrays.
static
<T,C extends Collection<T>,C1 extends Collection<T>,C2 extends Collection<T>>
Pair<C1,C2>
Functional.span(C coll, Predicate<T> pred, C1 tgt1, C2 tgt2)
          Split a collection at the first element not satisfying a predicate.
static
<T> Pair<T[],T[]>
Functional.span(T[] arr, Predicate<T> pred)
          Split an array at the first element not satisfying a predicate, returning two arrays.
static
<T,C1 extends Collection<T>,C2 extends Collection<T>>
Pair<C1,C2>
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
<T> Iterable<Pair<Integer,T>>
Functional.enumerate(Iterable<T> coll)
          Iterate over (index, element) pairs corresponding to each element of an iterable with its index.
static
<T> Iterable<Pair<Integer,T>>
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()