Package | Description |
---|---|
javaslang |
Modifier and Type | Method and Description |
---|---|
<U1> Tuple1<U1> |
Tuple1.map(Function<? super T1,? extends U1> mapper)
Maps the components of this tuple using a mapper function.
|
static <T1> Tuple1<T1> |
Tuple.narrow(Tuple1<? extends T1> t)
Narrows a widened
Tuple1<? extends T1> to Tuple1<T1> . |
static <T1> Tuple1<T1> |
Tuple.of(T1 t1)
Creates a tuple of one element.
|
static <T1> Tuple1<Seq<T1>> |
Tuple.sequence1(Iterable<? extends Tuple1<? extends T1>> tuples)
Turns a sequence of
Tuple1 into a Tuple1 of Seq . |
static <T1> Tuple1<T1> |
API.Tuple(T1 t1)
Alias for
Tuple.of(Object)
Creates a tuple of one element. |
Tuple1<T1> |
Tuple1.update1(T1 value)
Sets the 1st element of this tuple to the given
value . |
Modifier and Type | Method and Description |
---|---|
static <T1> Comparator<Tuple1<T1>> |
Tuple1.comparator(Comparator<? super T1> t1Comp) |
static <T1,_1 extends T1> |
Patterns.Tuple1(API.Match.Pattern<_1,?> p1) |
default Function1<Tuple1<T1>,R> |
Function1.tupled() |
default CheckedFunction1<Tuple1<T1>,R> |
CheckedFunction1.tupled() |
Modifier and Type | Method and Description |
---|---|
int |
Tuple1.compareTo(Tuple1<T1> that) |
static <T1> Tuple1<T1> |
Tuple.narrow(Tuple1<? extends T1> t)
Narrows a widened
Tuple1<? extends T1> to Tuple1<T1> . |
Modifier and Type | Method and Description |
---|---|
static <T,T1 extends U1,U1> |
API.Match.Pattern1.of(Class<? super T> type,
API.Match.Pattern<T1,?> p1,
Function<T,Tuple1<U1>> unapply) |
static <T1> Tuple1<Seq<T1>> |
Tuple.sequence1(Iterable<? extends Tuple1<? extends T1>> tuples)
Turns a sequence of
Tuple1 into a Tuple1 of Seq . |
Copyright © 2016. All Rights Reserved.