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