Uses of Class
edu.rice.cs.plt.tuple.Pair

Packages that use Pair
edu.rice.cs.plt.collect Contains general-purpose extensions to and variations on the java.util collections framework. 
edu.rice.cs.plt.debug Defines a variety of logging classes, along with other facilities for code-embedded debugging. 
edu.rice.cs.plt.io Provides extensions to the java.io package, which provides character- and byte- based streams and buffers, files, file filters, and serialization. 
edu.rice.cs.plt.iter A collection of implementations of Iterable and Iterator
edu.rice.cs.plt.lambda A collection of interfaces facilitating first-class functions in Java. 
edu.rice.cs.plt.recur Classes enabling safe handling of infinite or extremely deep recursion. 
edu.rice.cs.plt.text Provides support for various manipulations of strings. 
edu.rice.cs.plt.tuple Classes for the type-parameterized representation of tuples. 
 

Uses of Pair in edu.rice.cs.plt.collect
 

Methods in edu.rice.cs.plt.collect that return types with arguments of type Pair
 Iterator<Pair<T1,T2>> AbstractFunctionalRelation.iterator()
          Produces an iterator based on functionMap().entrySet().
 Iterator<Pair<T1,T2>> IndexedRelation.iterator()
           
 Iterator<Pair<T1,T2>> AbstractInjectiveRelation.iterator()
          Produces an iterator based on injectionMap().entrySet().
 Iterator<Pair<K,V>> LazyRelationIndex.iterator()
           
abstract  Iterator<Pair<T1,T2>> AbstractRelation.iterator()
           
 Iterator<Pair<T2,T1>> AbstractRelation.InverseRelation.iterator()
           
 Iterator<Pair<K,V>> RelationIndex.iterator()
          Iterates through all key-value pairs in the index.
 Iterator<Pair<T1,T2>> UnindexedRelation.iterator()
           
 Iterator<Pair<T1,T2>> FilteredRelation.iterator()
           
 Iterator<Pair<T1,T2>> CartesianRelation.iterator()
           
 Iterator<Pair<T1,T2>> SingletonRelation.iterator()
           
 Iterator<Pair<T1,T2>> UnionRelation.iterator()
           
 Iterator<Pair<T1,T3>> ComposedRelation.iterator()
          For each element of rel1.firstSet(), iterate over all transitive matches.
 Iterator<Pair<K,V>> ConcreteRelationIndex.iterator()
           
 

Methods in edu.rice.cs.plt.collect with parameters of type Pair
 boolean AbstractRelation.add(Pair<T1,T2> p)
          Invokes AbstractRelation.add(Object, Object).
 boolean ImmutableRelation.add(Pair<T1,T2> o)
           
 boolean InjectiveRelation.add(Pair<T1,T2> pair)
          Add a pair to the set.
 boolean OneToOneRelation.add(Pair<T1,T2> pair)
          Add a pair to the set.
 boolean Relation.add(Pair<T1,T2> pair)
          Add Pair.make(p.first(), p.second()) to the set.
 boolean FunctionalRelation.add(Pair<T1,T2> pair)
          Add a pair to the set.
 boolean AbstractRelation.InverseRelation.add(Pair<T2,T1> pair)
           
static
<T1,T2> SingletonRelation<T1,T2>
SingletonRelation.make(Pair<? extends T1,? extends T2> pair)
          Call the constructor (allows type arguments to be inferred)
 

Method parameters in edu.rice.cs.plt.collect with type arguments of type Pair
 boolean ImmutableRelation.addAll(Collection<? extends Pair<T1,T2>> c)
           
static
<T1,T2> Relation<T1,T2>
CollectUtil.makeRelation(Iterable<? extends Pair<? extends T1,? extends T2>> pairs)
          Create an immutable Relation based on the given elements.
 

Constructors in edu.rice.cs.plt.collect with parameters of type Pair
SingletonRelation(Pair<? extends T1,? extends T2> pair)
           
 

Constructor parameters in edu.rice.cs.plt.collect with type arguments of type Pair
LazyRelationIndex(Iterable<? extends Pair<K,V>> pairs)
           
LazyRelationIndex(Set<Pair<K,V>> pairs)
           
UnindexedRelation(Thunk<Set<Pair<T1,T2>>> setFactory)
          Create an UnindexedRelation wrapping an instance of the provided set.
 

Uses of Pair in edu.rice.cs.plt.debug
 

Methods in edu.rice.cs.plt.debug that return types with arguments of type Pair
 Iterable<Pair<String,Object>> LogSink.ValueMessage.values()
          A list of name-value pairs to be logged.
 

Uses of Pair in edu.rice.cs.plt.io
 

Methods in edu.rice.cs.plt.io that return Pair
static Pair<?,?> IOUtil.ensureSerializable(Pair<?,?> p)
          Apply ensureSerializable() to each of the elements of the given tuple.
 

Methods in edu.rice.cs.plt.io with parameters of type Pair
static Pair<?,?> IOUtil.ensureSerializable(Pair<?,?> p)
          Apply ensureSerializable() to each of the elements of the given tuple.
 

Uses of Pair in edu.rice.cs.plt.iter
 

Methods in edu.rice.cs.plt.iter that return Pair
static
<T> Pair<T,T>
IterUtil.makePair(Iterable<? extends T> iter)
          Convert an iterable of 2 elements to a Pair.
static
<T> Pair<SizedIterable<T>,SizedIterable<T>>
IterUtil.split(Iterable<? extends T> iter, int index)
          Split the given iterable into two at the given index.
 

Methods in edu.rice.cs.plt.iter that return types with arguments of type Pair
static
<T1,T2> SizedIterable<Pair<T1,T2>>
IterUtil.cross(Iterable<? extends T1> left, Iterable<? extends T2> right)
          Lazily produce the cartesian (cross) product of two iterables, wrapping each combination of elements in a Pair.
static
<T1,T2> SizedIterable<Pair<T1,T2>>
IterUtil.diagonalCross(Iterable<? extends T1> left, Iterable<? extends T2> right)
          Lazily produce the cartesian (cross) product of two iterables, wrapping each combination of elements in a Pair.
static
<T1,T2> SizedIterable<Pair<T1,T2>>
IterUtil.zip(Iterable<? extends T1> iter1, Iterable<? extends T2> iter2)
          Lazily create an iterable of Pairs of corresponding values from the given iterables (assumed to always have the same length).
 

Methods in edu.rice.cs.plt.iter with parameters of type Pair
static
<T> SizedIterable<T>
IterUtil.toIterable(Pair<? extends T,? extends T> tuple)
          Produce an iterable of size 2 from a Pair.
 

Method parameters in edu.rice.cs.plt.iter with type arguments of type Pair
static
<T> SizedIterable<T>
IterUtil.pairFirsts(Iterable<? extends Pair<? extends T,?>> iter)
          Lazily create an iterable containing the first values of the given tuples.
static
<T> SizedIterable<T>
IterUtil.pairSeconds(Iterable<? extends Pair<?,? extends T>> iter)
          Lazily create an iterable containing the second values of the given tuples.
 

Uses of Pair in edu.rice.cs.plt.lambda
 

Methods in edu.rice.cs.plt.lambda that return types with arguments of type Pair
static
<T1,T2,R> Lambda<Pair<T1,T2>,R>
LambdaUtil.unary(Lambda2<? super T1,? super T2,? extends R> lambda)
          Treat a Lambda2 as a unary lambda accepting a Pair argument.
static
<T1,T2> Predicate<Pair<T1,T2>>
LambdaUtil.unary(Predicate2<? super T1,? super T2> pred)
          Treat a Predicate2 as a unary predicate accepting a Pair argument.
static
<T1,T2> Runnable1<Pair<T1,T2>>
LambdaUtil.unary(Runnable2<? super T1,? super T2> runnable)
          Treat a Runnable2 as a Runnable1 accepting a Pair argument.
 

Method parameters in edu.rice.cs.plt.lambda with type arguments of type Pair
static
<T1,T2,R> Lambda2<T1,T2,R>
LambdaUtil.flatten2(Lambda<? super Pair<T1,T2>,? extends R> lambda)
          Treat a lambda accepting a Pair argument as a Lambda2.
static
<T1,T2> Predicate2<T1,T2>
LambdaUtil.flatten2(Predicate<? super Pair<T1,T2>> pred)
          Treat a predicate accepting a Pair argument as a Predicate2.
static
<T1,T2> Runnable2<T1,T2>
LambdaUtil.flatten2(Runnable1<? super Pair<T1,T2>> runnable)
          Treat a runnable accepting a Pair argument as a Runnable2.
 

Uses of Pair in edu.rice.cs.plt.recur
 

Method parameters in edu.rice.cs.plt.recur with type arguments of type Pair
static
<T1,T2> RecursionStack2<T1,T2>
RecursionStack2.make(Lambda2<? super T1,? super T2,? extends Pair<T1,T2>> pairFactory)
          Call the constructor (allows the type arguments to be inferred)
static
<T1,T2,R> PrecomputedRecursionStack2<T1,T2,R>
PrecomputedRecursionStack2.make(Lambda2<? super T1,? super T2,? extends Pair<T1,T2>> pairFactory)
          Call the constructor (allows the type arguments to be inferred)
 

Constructor parameters in edu.rice.cs.plt.recur with type arguments of type Pair
PrecomputedRecursionStack2(Lambda2<? super T1,? super T2,? extends Pair<T1,T2>> pairFactory)
          Create an empty recursion stack with the given Pair factory
RecursionStack2(Lambda2<? super T1,? super T2,? extends Pair<T1,T2>> pairFactory)
          Create an empty recursion stack with the given Pair factory
 

Uses of Pair in edu.rice.cs.plt.text
 

Methods in edu.rice.cs.plt.text that return Pair
 Pair<String,String> ArgumentParser.Result.getBinaryOption(String opt)
          Get the 2 arguments associated with the given option, or null if it is undefined or has a different number of arguments.
 

Uses of Pair in edu.rice.cs.plt.tuple
 

Subclasses of Pair in edu.rice.cs.plt.tuple
 class IdentityPair<T1,T2>
          A pair that defines IdentityPair.equals(java.lang.Object) and Tuple.hashCode() in terms of its elements' identity (==) instead of equality (@code equals})
 

Methods in edu.rice.cs.plt.tuple that return Pair
 Pair<T2,T1> Pair.inverse()
          Invert a pair.
static
<T1,T2> Pair<T1,T2>
Pair.make(T1 first, T2 second)
          Call the constructor (allows the type arguments to be inferred)
 

Methods in edu.rice.cs.plt.tuple that return types with arguments of type Pair
static
<T1 extends Comparable<? super T1>,T2 extends Comparable<? super T2>>
TotalOrder<Pair<? extends T1,? extends T2>>
Pair.comparator()
          Produce a comparator for pairs, ordered by the natural order of the elements (the leftmost elements have the highest sort priority).
static
<T1,T2> TotalOrder<Pair<? extends T1,? extends T2>>
Pair.comparator(Comparator<? super T1> comp1, Comparator<? super T2> comp2)
          Produce a comparator for pairs, ordered by the given comparators (the leftmost elements have the highest sort priority).
static
<T1,T2> Lambda2<T1,T2,Pair<T1,T2>>
Pair.factory()
          Produce a lambda that invokes the constructor.
static
<T1,T2> Lambda2<T1,T2,Pair<T1,T2>>
IdentityPair.factory()
          Produce a lambda that invokes the constructor
static
<T> Lambda<Pair<? extends T,?>,T>
Pair.firstGetter()
          Produce a lambda that invokes first() on a provided pair.
static
<T1,T2> Lambda<Pair<T1,T2>,Pair<T2,T1>>
Pair.inverter()
          Produce a lambda that invokes inverse() on a provided pair.
static
<T1,T2> Lambda<Pair<T1,T2>,Pair<T2,T1>>
Pair.inverter()
          Produce a lambda that invokes inverse() on a provided pair.
static
<T> Lambda<Pair<?,? extends T>,T>
Pair.secondGetter()
          Produce a lambda that invokes second() on a provided pair.