Modifier and Type | Method and Description |
---|---|
static <TT,TX extends TT,TY extends TT,P extends Pair<TT,TX,TY>,R> |
Pair.curry(Function<P,R> f)
Converts a
function on pairs to a function on two elements . |
Modifier and Type | Method and Description |
---|---|
Pair<T,X,Y> |
Pair.clone()
Returns this pair, as it is immutable.
|
static <TT,TX extends TT,TY extends TT> |
Pair.of(Class<TT> commonType,
TX first,
TY second)
This creates the Pair and checks the types of both values.
|
static <TT,TX extends TT,TY extends TT> |
Pair.of(TX first,
TY second)
Creates a new pair.
|
Pair<T,Y,X> |
Pair.swap()
Creates an inverted pair.
|
Modifier and Type | Method and Description |
---|---|
static <C,T1 extends C,T2 extends C> |
BitSetUtilities.cross(DomainBitSet<T2> set1,
DomainBitSet<T2> set2,
Class<C> type)
Returns the Cartesian Product.
|
default <Y> Set<Pair<?,T,Y>> |
DomainBitSet.cross(DomainBitSet<Y> set)
Returns the Cartesian Product.
|
<Y extends Enum<Y> & EnumBitSetHelper<Y>> |
EnumBitSet.cross(EnumBitSet<Y> set)
The Cartesian product with another EnumBitSet.
|
static <T> Collector<Pair<Object,Integer,T>,?,TreeMap<Integer,T>> |
BitSetUtilities.toTreeMap()
|
static <TX,TY,R> Function<Pair<?,TX,TY>,R> |
Pair.uncurry(BiFunction<TX,TY,R> f)
Converts a
function on two elements to a function on pairs . |
Stream<Pair<Object,Integer,T>> |
SmallDomainBitSet.zipWithPosition() |
Stream<Pair<Object,Integer,E>> |
EnumBitSet.zipWithPosition()
Returns a sequential stream with pairs of all elements of this set and their position in the
domain.
|
default Stream<Pair<Object,Integer,T>> |
DomainBitSet.zipWithPosition()
Returns a sequential stream with pairs of all elements of this set and their position in the
domain.
|