Package owl.collections
Class Pair<A,B>
- java.lang.Object
-
- owl.collections.Pair<A,B>
-
public abstract class Pair<A,B> extends Object
-
-
Constructor Summary
Constructors Constructor Description Pair()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <A,B>
Set<Pair<A,B>>allPairs(Set<? extends A> fstSet, Set<? extends B> sndSet)
abstract A
fst()
<C> Pair<C,B>
mapFst(Function<? super A,? extends C> mapper)
<C> Pair<A,C>
mapSnd(Function<? super B,? extends C> mapper)
static <A,B>
Pair<A,B>of(A fst, B snd)
abstract B
snd()
Pair<B,A>
swap()
String
toString()
<C> Pair<C,B>
withFst(C fst)
<C> Pair<A,C>
withSnd(C snd)
-