Package | Description |
---|---|
io.vavr |
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples. |
io.vavr.collection |
Purely functional collections based on Traversable.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
API.Match.Case<T,R> |
static interface |
API.Match.Pattern<T,R>
A Pattern is a partial
Function in the sense that a function applications returns an
optional result of type Option<R> . |
interface |
PartialFunction<T,R>
Represents a partial function T -> R that is not necessarily defined for all input values of type T.
|
Modifier and Type | Class and Description |
---|---|
static class |
API.Match.Case0<T,R> |
static class |
API.Match.Case1<T,T1,R> |
static class |
API.Match.Case2<T,T1,T2,R> |
static class |
API.Match.Case3<T,T1,T2,T3,R> |
static class |
API.Match.Case4<T,T1,T2,T3,T4,R> |
static class |
API.Match.Case5<T,T1,T2,T3,T4,T5,R> |
static class |
API.Match.Case6<T,T1,T2,T3,T4,T5,T6,R> |
static class |
API.Match.Case7<T,T1,T2,T3,T4,T5,T6,T7,R> |
static class |
API.Match.Case8<T,T1,T2,T3,T4,T5,T6,T7,T8,R> |
static class |
API.Match.Pattern0<T> |
static class |
API.Match.Pattern1<T,T1> |
static class |
API.Match.Pattern2<T,T1,T2> |
static class |
API.Match.Pattern3<T,T1,T2,T3> |
static class |
API.Match.Pattern4<T,T1,T2,T3,T4> |
static class |
API.Match.Pattern5<T,T1,T2,T3,T4,T5> |
static class |
API.Match.Pattern6<T,T1,T2,T3,T4,T5,T6> |
static class |
API.Match.Pattern7<T,T1,T2,T3,T4,T5,T6,T7> |
static class |
API.Match.Pattern8<T,T1,T2,T3,T4,T5,T6,T7,T8> |
Modifier and Type | Method and Description |
---|---|
default <V> Function1<T1,V> |
Function1.andThen(Function<? super R,? extends V> after)
Returns a composed function that first applies this Function1 to the given argument and then applies
Function
after to the result. |
default Function1<T2,R> |
Function2.apply(T1 t1)
Applies this function partially to one argument.
|
default Function1<T3,R> |
Function3.apply(T1 t1,
T2 t2)
Applies this function partially to two arguments.
|
default Function1<T4,R> |
Function4.apply(T1 t1,
T2 t2,
T3 t3)
Applies this function partially to three arguments.
|
default Function1<T5,R> |
Function5.apply(T1 t1,
T2 t2,
T3 t3,
T4 t4)
Applies this function partially to 4 arguments.
|
default Function1<T6,R> |
Function6.apply(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5)
Applies this function partially to 5 arguments.
|
default Function1<T7,R> |
Function7.apply(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5,
T6 t6)
Applies this function partially to 6 arguments.
|
default Function1<T8,R> |
Function8.apply(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5,
T6 t6,
T7 t7)
Applies this function partially to 7 arguments.
|
default <V> Function1<V,R> |
Function1.compose(Function<? super V,? extends T1> before)
Returns a composed function that first applies the Function
before the
given argument and then applies this Function1 to the result. |
static <T1,R> Function1<T1,R> |
Function1.constant(R value)
Returns a function that always returns the constant
value that you give in parameter.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,Function1<T8,R>>>>>>>> |
Function8.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,CheckedFunction1<T8,R>>>>>>>> |
CheckedFunction8.curried()
Returns a curried version of this function.
|
default Function1<T1,R> |
Function1.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,CheckedFunction1<T5,R>>>>> |
CheckedFunction5.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,CheckedFunction1<T7,R>>>>>>> |
CheckedFunction7.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,R>>> |
Function3.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,R>>>>>>> |
Function7.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,CheckedFunction1<T3,R>>> |
CheckedFunction3.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,R>>>>> |
Function5.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,CheckedFunction1<T6,R>>>>>> |
CheckedFunction6.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,R>> |
Function2.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,CheckedFunction1<T4,R>>>> |
CheckedFunction4.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,R>>>> |
Function4.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,R>>>>>> |
Function6.curried()
Returns a curried version of this function.
|
default Function1<T1,CheckedFunction1<T2,R>> |
CheckedFunction2.curried()
Returns a curried version of this function.
|
static <T1,R> Function1<T1,R> |
API.Function(Function1<T1,R> methodReference)
Alias for
of(Function1) |
static <T> Function1<T,T> |
Function1.identity()
Returns the identity Function1, i.e.
|
default Function1<T,Option<R>> |
PartialFunction.lift()
Lifts this partial function into a total function that returns an
Option result. |
static <T1,R> Function1<T1,Option<R>> |
CheckedFunction1.lift(CheckedFunction1<? super T1,? extends R> partialFunction)
Lifts the given
partialFunction into a total function that returns an Option result. |
static <T1,R> Function1<T1,Option<R>> |
Function1.lift(Function<? super T1,? extends R> partialFunction)
Lifts the given
partialFunction into a total function that returns an Option result. |
static <T1,R> Function1<T1,Try<R>> |
CheckedFunction1.liftTry(CheckedFunction1<? super T1,? extends R> partialFunction)
Lifts the given
partialFunction into a total function that returns an Try result. |
static <T1,R> Function1<T1,Try<R>> |
Function1.liftTry(Function<? super T1,? extends R> partialFunction)
Lifts the given
partialFunction into a total function that returns an Try result. |
default Function1<T1,R> |
Function1.memoized()
Returns a memoizing version of this function, which computes the return value for given arguments only one time.
|
static <T1,R> Function1<T1,R> |
Function1.narrow(Function1<? super T1,? extends R> f)
Narrows the given
Function1<? super T1, ? extends R> to Function1<T1, R> |
static <T1,R> Function1<T1,R> |
Function1.of(Function1<T1,R> methodReference)
|
default Function1<T1,R> |
CheckedFunction1.recover(Function<? super Throwable,? extends Function<? super T1,? extends R>> recover)
Return a composed function that first applies this CheckedFunction1 to the given arguments and in case of throwable
try to get value from
recover function with same arguments and throwable information. |
default Function1<T1,R> |
Function1.reversed()
Returns a reversed version of this function.
|
default Function1<Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>,R> |
Function8.tupled()
Returns a tupled version of this function.
|
default Function1<Tuple1<T1>,R> |
Function1.tupled()
Returns a tupled version of this function.
|
default Function1<Tuple3<T1,T2,T3>,R> |
Function3.tupled()
Returns a tupled version of this function.
|
default Function1<Tuple7<T1,T2,T3,T4,T5,T6,T7>,R> |
Function7.tupled()
Returns a tupled version of this function.
|
default Function1<Tuple5<T1,T2,T3,T4,T5>,R> |
Function5.tupled()
Returns a tupled version of this function.
|
default Function1<Tuple2<T1,T2>,R> |
Function2.tupled()
Returns a tupled version of this function.
|
default Function1<Tuple0,R> |
Function0.tupled()
Returns a tupled version of this function.
|
default Function1<Tuple4<T1,T2,T3,T4>,R> |
Function4.tupled()
Returns a tupled version of this function.
|
default Function1<Tuple6<T1,T2,T3,T4,T5,T6>,R> |
Function6.tupled()
Returns a tupled version of this function.
|
default Function1<T1,R> |
CheckedFunction1.unchecked()
Returns an unchecked function that will sneaky throw if an exceptions occurs when applying the function.
|
static <T1,R> Function1<T1,R> |
API.unchecked(CheckedFunction1<T1,R> f)
Alias for
CheckedFunction1.unchecked() |
Modifier and Type | Method and Description |
---|---|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,Function1<T8,R>>>>>>>> |
Function8.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,Function1<T8,R>>>>>>>> |
Function8.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,Function1<T8,R>>>>>>>> |
Function8.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,Function1<T8,R>>>>>>>> |
Function8.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,Function1<T8,R>>>>>>>> |
Function8.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,Function1<T8,R>>>>>>>> |
Function8.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,Function1<T8,R>>>>>>>> |
Function8.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,CheckedFunction1<T8,R>>>>>>>> |
CheckedFunction8.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,CheckedFunction1<T8,R>>>>>>>> |
CheckedFunction8.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,CheckedFunction1<T8,R>>>>>>>> |
CheckedFunction8.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,CheckedFunction1<T8,R>>>>>>>> |
CheckedFunction8.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,CheckedFunction1<T8,R>>>>>>>> |
CheckedFunction8.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,CheckedFunction1<T8,R>>>>>>>> |
CheckedFunction8.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,CheckedFunction1<T5,R>>>>> |
CheckedFunction5.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,CheckedFunction1<T5,R>>>>> |
CheckedFunction5.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,CheckedFunction1<T5,R>>>>> |
CheckedFunction5.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,CheckedFunction1<T7,R>>>>>>> |
CheckedFunction7.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,CheckedFunction1<T7,R>>>>>>> |
CheckedFunction7.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,CheckedFunction1<T7,R>>>>>>> |
CheckedFunction7.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,CheckedFunction1<T7,R>>>>>>> |
CheckedFunction7.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,CheckedFunction1<T7,R>>>>>>> |
CheckedFunction7.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,R>>> |
Function3.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,R>>> |
Function3.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,R>>>>>>> |
Function7.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,R>>>>>>> |
Function7.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,R>>>>>>> |
Function7.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,R>>>>>>> |
Function7.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,R>>>>>>> |
Function7.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,R>>>>>>> |
Function7.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,CheckedFunction1<T3,R>>> |
CheckedFunction3.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,R>>>>> |
Function5.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,R>>>>> |
Function5.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,R>>>>> |
Function5.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,R>>>>> |
Function5.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,CheckedFunction1<T6,R>>>>>> |
CheckedFunction6.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,CheckedFunction1<T6,R>>>>>> |
CheckedFunction6.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,CheckedFunction1<T6,R>>>>>> |
CheckedFunction6.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,CheckedFunction1<T6,R>>>>>> |
CheckedFunction6.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,R>> |
Function2.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,CheckedFunction1<T4,R>>>> |
CheckedFunction4.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,CheckedFunction1<T4,R>>>> |
CheckedFunction4.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,R>>>> |
Function4.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,R>>>> |
Function4.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,R>>>> |
Function4.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,R>>>>>> |
Function6.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,R>>>>>> |
Function6.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,R>>>>>> |
Function6.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,R>>>>>> |
Function6.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,R>>>>>> |
Function6.curried()
Returns a curried version of this function.
|
Modifier and Type | Method and Description |
---|---|
static <T1,R> Function1<T1,R> |
API.Function(Function1<T1,R> methodReference)
Alias for
of(Function1) |
static <T1,R> Function1<T1,R> |
Function1.narrow(Function1<? super T1,? extends R> f)
Narrows the given
Function1<? super T1, ? extends R> to Function1<T1, R> |
static <T1,R> Function1<T1,R> |
Function1.of(Function1<T1,R> methodReference)
|
Modifier and Type | Interface and Description |
---|---|
interface |
BitSet<T>
An immutable
BitSet implementation. |
interface |
IndexedSeq<T>
Interface for immutable, indexed sequences.
|
interface |
LinearSeq<T>
Interface for immutable, linear sequences.
|
interface |
List<T>
An immutable
List is an eager sequence of elements. |
interface |
Map<K,V>
An immutable
Map interface. |
interface |
Multimap<K,V>
An immutable
Multimap interface. |
interface |
Seq<T>
Interface for immutable sequential data structures.
|
interface |
Set<T>
An immutable
Set interface. |
interface |
SortedMap<K,V>
An immutable
SortedMap interface. |
interface |
SortedMultimap<K,V>
An immutable
SortedMultimap interface. |
interface |
SortedSet<T>
An immutable
SortedSet interface. |
interface |
Stream<T>
An immutable
Stream is lazy sequence of elements which may be infinitely long. |
Modifier and Type | Class and Description |
---|---|
class |
Array<T>
Array is a Traversable wrapper for
Object[] containing elements of type T . |
class |
CharSeq
The CharSeq (read: character sequence) collection essentially is a rich String wrapper having all operations
we know from the functional Vavr collections.
|
class |
HashMap<K,V>
An immutable
HashMap implementation based on a
Hash array mapped trie (HAMT). |
class |
HashMultimap<K,V>
|
class |
HashSet<T>
An immutable
HashSet implementation. |
class |
LinkedHashMap<K,V>
An immutable
LinkedHashMap implementation that has predictable (insertion-order) iteration. |
class |
LinkedHashMultimap<K,V>
A
LinkedHashMap -based implementation of Multimap |
class |
LinkedHashSet<T>
An immutable
HashSet implementation that has predictable (insertion-order) iteration. |
static class |
List.Cons<T>
Non-empty
List , consisting of a head and a tail . |
static class |
List.Nil<T>
Representation of the singleton empty
List . |
class |
Queue<T>
An immutable
Queue stores elements allowing a first-in-first-out (FIFO) retrieval. |
static class |
Stream.Cons<T>
Non-empty
Stream , consisting of a head , and tail . |
static class |
Stream.Empty<T>
The empty Stream.
|
class |
TreeMap<K,V>
SortedMap implementation, backed by a Red/Black Tree.
|
class |
TreeMultimap<K,V>
|
class |
TreeSet<T>
SortedSet implementation, backed by a Red/Black Tree.
|
class |
Vector<T>
Vector is the default Seq implementation that provides effectively constant time access to any element.
|
Modifier and Type | Method and Description |
---|---|
default Function1<K,Option<V>> |
Map.lift()
Turns this map into a plain function returning an Option result.
|
default Function1<Integer,Option<T>> |
Seq.lift()
Deprecated.
Will be removed
|
default Function1<Integer,T> |
Seq.withDefault(Function<? super Integer,? extends T> defaultFunction)
Deprecated.
Will be removed
|
default Function1<K,V> |
Map.withDefault(Function<? super K,? extends V> defaultFunction)
Deprecated.
Will be removed
|
default Function1<Integer,T> |
Seq.withDefaultValue(T defaultValue)
Deprecated.
Will be removed
|
default Function1<K,V> |
Map.withDefaultValue(V defaultValue)
Deprecated.
Will be removed
|
Modifier and Type | Method and Description |
---|---|
static <T> BitSet.Builder<T> |
BitSet.withRelations(Function1<Integer,T> fromInt,
Function1<T,Integer> toInt) |
static <T> BitSet.Builder<T> |
BitSet.withRelations(Function1<Integer,T> fromInt,
Function1<T,Integer> toInt) |
Copyright © 2020. All Rights Reserved.