Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
Pair (P p, V v) | |
Pair< V, P > | flip () |
String | toString () |
int | hashCode () |
boolean | equals (Object obj) |
Static Public Member Functions | |
static< PextendsComparable< P > V Comparator< Pair< P, V > > | pCompare () |
static< P, V > Comparator < Pair< P, V > > | pCompare (final Comparator< P > comp) |
static< P, V > List< Pair< V, P > > | flipList (List< Pair< P, V >> list) |
static< PextendsComparable< P > V List< Pair< P, List< V > > > | disjointPartition (List< Pair< P, V >> list) |
static< P, VextendsComparable < V > Comparator< Pair< P, V > > | vCompare () |
static< P, V > Comparator < Pair< P, V > > | vCompare (final Comparator< V > vComp) |
static< P, V > List< Pair< P, V > > | zip (List< P > ps, List< V > vs) |
static< P, V > List< P > | pList (List< Pair< P, V >> list) |
static< P, V > List< V > | vList (List< Pair< P, V >> list) |
static< P, V > List< Pair< P, V > > | map (Collection< V > vs, Function< V, P > function) |
static< PextendsComparable< P > V List< Pair< P, List< V > > > | partition (Collection< V > input, Function< V, P > function) |
static< P, V > List< V > | expand (Collection< P > input, Function< P,?extends Collection< V >> function) |
static< P, V > Collection < Pair< P, V > > | cross (P p, Collection< V > vs) |
static< P, V > Collection < Pair< V, P > > | cross (Collection< V > vs, P p) |
Public Attributes | |
P | p |
V | v |
Utility class that holds a value of Type P and one of Type V.
<P> | |
<V> |
de.fu_berlin.inf.dpp.util.Pair< P, V >.Pair | ( | P | p, |
V | v | ||
) |
static <P,V> Collection<Pair<P, V> > de.fu_berlin.inf.dpp.util.Pair< P, V >.cross | ( | P | p, |
Collection< V > | vs | ||
) | [static] |
static <P,V> Collection<Pair<V, P> > de.fu_berlin.inf.dpp.util.Pair< P, V >.cross | ( | Collection< V > | vs, |
P | p | ||
) | [static] |
static <PextendsComparable<P> V List<Pair<P, List<V> > > de.fu_berlin.inf.dpp.util.Pair< P, V >.disjointPartition | ( | List< Pair< P, V >> | list | ) | [static] |
boolean de.fu_berlin.inf.dpp.util.Pair< P, V >.equals | ( | Object | obj | ) |
static <P,V> List<V> de.fu_berlin.inf.dpp.util.Pair< P, V >.expand | ( | Collection< P > | input, |
Function< P,?extends Collection< V >> | function | ||
) | [static] |
Pair<V, P> de.fu_berlin.inf.dpp.util.Pair< P, V >.flip | ( | ) |
static <P,V> List<Pair<V, P> > de.fu_berlin.inf.dpp.util.Pair< P, V >.flipList | ( | List< Pair< P, V >> | list | ) | [static] |
Will return a list that has P and V switched.
int de.fu_berlin.inf.dpp.util.Pair< P, V >.hashCode | ( | ) |
static <P,V> List<Pair<P, V> > de.fu_berlin.inf.dpp.util.Pair< P, V >.map | ( | Collection< V > | vs, |
Function< V, P > | function | ||
) | [static] |
static <PextendsComparable<P> V List<Pair<P, List<V> > > de.fu_berlin.inf.dpp.util.Pair< P, V >.partition | ( | Collection< V > | input, |
Function< V, P > | function | ||
) | [static] |
static <P,V> Comparator<Pair<P, V> > de.fu_berlin.inf.dpp.util.Pair< P, V >.pCompare | ( | final Comparator< P > | comp | ) | [static] |
static <PextendsComparable<P> V Comparator<Pair<P, V> > de.fu_berlin.inf.dpp.util.Pair< P, V >.pCompare | ( | ) | [static] |
static <P,V> List<P> de.fu_berlin.inf.dpp.util.Pair< P, V >.pList | ( | List< Pair< P, V >> | list | ) | [static] |
From a list of pairs, returns a list of the P elements in the list.
String de.fu_berlin.inf.dpp.util.Pair< P, V >.toString | ( | ) |
static <P,VextendsComparable<V> Comparator<Pair<P, V> > de.fu_berlin.inf.dpp.util.Pair< P, V >.vCompare | ( | ) | [static] |
static <P,V> Comparator<Pair<P, V> > de.fu_berlin.inf.dpp.util.Pair< P, V >.vCompare | ( | final Comparator< V > | vComp | ) | [static] |
static <P,V> List<V> de.fu_berlin.inf.dpp.util.Pair< P, V >.vList | ( | List< Pair< P, V >> | list | ) | [static] |
static <P,V> List<Pair<P, V> > de.fu_berlin.inf.dpp.util.Pair< P, V >.zip | ( | List< P > | ps, |
List< V > | vs | ||
) | [static] |
Given a list of Ps and a list of Vs will return a list of Pairs. If the list are of different length null values used to fill.
P de.fu_berlin.inf.dpp.util.Pair< P, V >.p |
V de.fu_berlin.inf.dpp.util.Pair< P, V >.v |