Package | Description |
---|---|
io.vavr |
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples. |
Modifier and Type | Method and Description |
---|---|
<T1> Tuple1<T1> |
Tuple0.append(T1 t1)
Append a value to this tuple.
|
<T1> Tuple1<T1> |
Tuple0.concat(Tuple1<T1> tuple)
Concat a tuple's values to this tuple.
|
<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,_1 extends T1> |
Patterns.$Tuple1(API.Match.Pattern<_1,?> p1) |
static <T1> Comparator<Tuple1<T1>> |
Tuple1.comparator(Comparator<? super T1> t1Comp) |
default Function1<Tuple1<T1>,R> |
Function1.tupled()
Returns a tupled version of this function.
|
default CheckedFunction1<Tuple1<T1>,R> |
CheckedFunction1.tupled()
Returns a tupled version of this function.
|
Modifier and Type | Method and Description |
---|---|
int |
Tuple1.compareTo(Tuple1<T1> that) |
<T1> Tuple1<T1> |
Tuple0.concat(Tuple1<T1> tuple)
Concat a tuple's values to this tuple.
|
<T2> Tuple2<T1,T2> |
Tuple1.concat(Tuple1<T2> tuple)
Concat a tuple's values to this tuple.
|
<T3> Tuple3<T1,T2,T3> |
Tuple2.concat(Tuple1<T3> tuple)
Concat a tuple's values to this tuple.
|
<T4> Tuple4<T1,T2,T3,T4> |
Tuple3.concat(Tuple1<T4> tuple)
Concat a tuple's values to this tuple.
|
<T5> Tuple5<T1,T2,T3,T4,T5> |
Tuple4.concat(Tuple1<T5> tuple)
Concat a tuple's values to this tuple.
|
<T6> Tuple6<T1,T2,T3,T4,T5,T6> |
Tuple5.concat(Tuple1<T6> tuple)
Concat a tuple's values to this tuple.
|
<T7> Tuple7<T1,T2,T3,T4,T5,T6,T7> |
Tuple6.concat(Tuple1<T7> tuple)
Concat a tuple's values to this tuple.
|
<T8> Tuple8<T1,T2,T3,T4,T5,T6,T7,T8> |
Tuple7.concat(Tuple1<T8> tuple)
Concat a tuple's values to this tuple.
|
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 © 2020. All Rights Reserved.