Uses of Interface
io.vavr.Function1
-
Packages that use Function1 Package Description io.vavr BesideAPI
the io.vavr package contains core types like (Checked)Functions and Tuples.io.vavr.collection Purely functional collections based on Traversable. -
-
Uses of Function1 in io.vavr
Subinterfaces of Function1 in io.vavr Modifier and Type Interface Description static interface
API.Match.Case<T,R>
static interface
API.Match.Pattern<T,R>
A Pattern is a partialFunction
in the sense that a function applications returns an optional result of typeOption<R>
.interface
PartialFunction<T,R>
Represents a partial function T -> R that is not necessarily defined for all input values of type T.Classes in io.vavr that implement Function1 Modifier and Type Class 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>
Methods in io.vavr that return Function1 Modifier and Type Method Description default <V> Function1<T1,V>
Function1. andThen(java.util.function.Function<? super R,? extends V> after)
Returns a composed function that first applies this Function1 to the given argument and then applies Functionafter
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(java.util.function.Function<? super V,? extends T1> before)
Returns a composed function that first applies the Functionbefore
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,CheckedFunction1<T2,R>>
CheckedFunction2. 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,CheckedFunction1<T4,R>>>>
CheckedFunction4. 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,CheckedFunction1<T6,R>>>>>>
CheckedFunction6. 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,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,R>>
Function2. 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,R>>>>
Function4. 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,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,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,Function1<T8,R>>>>>>>>
Function8. curried()
Returns a curried version of this function.static <T1,R>
Function1<T1,R>API. Function(Function1<T1,R> methodReference)
Alias forof(Function1)
static <T> Function1<T,T>
Function1. identity()
Returns the identity Function1, i.e.static <T1,R>
Function1<T1,Option<R>>CheckedFunction1. lift(CheckedFunction1<? super T1,? extends R> partialFunction)
Lifts the givenpartialFunction
into a total function that returns anOption
result.static <T1,R>
Function1<T1,Option<R>>Function1. lift(java.util.function.Function<? super T1,? extends R> partialFunction)
Lifts the givenpartialFunction
into a total function that returns anOption
result.default Function1<T,Option<R>>
PartialFunction. lift()
Lifts this partial function into a total function that returns anOption
result.static <T1,R>
Function1<T1,Try<R>>CheckedFunction1. liftTry(CheckedFunction1<? super T1,? extends R> partialFunction)
Lifts the givenpartialFunction
into a total function that returns anTry
result.static <T1,R>
Function1<T1,Try<R>>Function1. liftTry(java.util.function.Function<? super T1,? extends R> partialFunction)
Lifts the givenpartialFunction
into a total function that returns anTry
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 givenFunction1<? super T1, ? extends R>
toFunction1<T1, R>
static <T1,R>
Function1<T1,R>Function1. of(Function1<T1,R> methodReference)
default Function1<T1,R>
CheckedFunction1. recover(java.util.function.Function<? super java.lang.Throwable,? extends java.util.function.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 fromrecover
function with same arguments and throwable information.default Function1<T1,R>
Function1. reversed()
Returns a reversed version of this function.default Function1<Tuple0,R>
Function0. tupled()
Returns a tupled version of this function.default Function1<Tuple1<T1>,R>
Function1. 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<Tuple3<T1,T2,T3>,R>
Function3. 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<Tuple5<T1,T2,T3,T4,T5>,R>
Function5. 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<Tuple7<T1,T2,T3,T4,T5,T6,T7>,R>
Function7. tupled()
Returns a tupled 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.static <T1,R>
Function1<T1,R>API. unchecked(CheckedFunction1<T1,R> f)
Alias forCheckedFunction1.unchecked()
default Function1<T1,R>
CheckedFunction1. unchecked()
Returns an unchecked function that will sneaky throw if an exceptions occurs when applying the function.Methods in io.vavr that return types with arguments of type Function1 Modifier and Type Method Description default Function1<T1,Function1<T2,CheckedFunction1<T3,R>>>
CheckedFunction3. 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,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,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,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,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,R>>
Function2. 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,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,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,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.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,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.Methods in io.vavr with parameters of type Function1 Modifier and Type Method Description static <T1,R>
Function1<T1,R>API. Function(Function1<T1,R> methodReference)
Alias forof(Function1)
static <T1,R>
Function1<T1,R>Function1. narrow(Function1<? super T1,? extends R> f)
Narrows the givenFunction1<? super T1, ? extends R>
toFunction1<T1, R>
static <T1,R>
Function1<T1,R>Function1. of(Function1<T1,R> methodReference)
-
Uses of Function1 in io.vavr.collection
Subinterfaces of Function1 in io.vavr.collection Modifier and Type Interface Description interface
BitSet<T>
An immutableBitSet
implementation.interface
IndexedSeq<T>
Interface for immutable, indexed sequences.interface
LinearSeq<T>
Interface for immutable, linear sequences.interface
List<T>
An immutableList
is an eager sequence of elements.interface
Map<K,V>
An immutableMap
interface.interface
Multimap<K,V>
An immutableMultimap
interface.interface
Seq<T>
Interface for immutable sequential data structures.interface
Set<T>
An immutableSet
interface.interface
SortedMap<K,V>
An immutableSortedMap
interface.interface
SortedMultimap<K,V>
An immutableSortedMultimap
interface.interface
SortedSet<T>
An immutableSortedSet
interface.interface
Stream<T>
An immutableStream
is lazy sequence of elements which may be infinitely long.Classes in io.vavr.collection that implement Function1 Modifier and Type Class Description (package private) class
AbstractMultimap<K,V,M extends Multimap<K,V>>
AnMultimap
implementation (not intended to be public).class
Array<T>
Array is a Traversable wrapper forObject[]
containing elements of typeT
.static class
BitSetModule.AbstractBitSet<T>
static class
BitSetModule.BitSet1<T>
static class
BitSetModule.BitSet2<T>
static class
BitSetModule.BitSetN<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 immutableHashMap
implementation based on a Hash array mapped trie (HAMT).class
HashMultimap<K,V>
class
HashSet<T>
An immutableHashSet
implementation.class
LinkedHashMap<K,V>
An immutableLinkedHashMap
implementation that has predictable (insertion-order) iteration.class
LinkedHashMultimap<K,V>
ALinkedHashMap
-based implementation ofMultimap
class
LinkedHashSet<T>
An immutableHashSet
implementation that has predictable (insertion-order) iteration.static class
List.Cons<T>
Non-emptyList
, consisting of ahead
and atail
.static class
List.Nil<T>
Representation of the singleton emptyList
.class
Queue<T>
An immutableQueue
stores elements allowing a first-in-first-out (FIFO) retrieval.static class
Stream.Cons<T>
Non-emptyStream
, consisting of ahead
, andtail
.static class
Stream.Empty<T>
The empty Stream.static class
StreamModule.AppendElements<T>
static class
StreamModule.ConsImpl<T>
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.Fields in io.vavr.collection declared as Function1 Modifier and Type Field Description (package private) Function1<java.lang.Integer,T>
BitSet.Builder. fromInt
(package private) Function1<java.lang.Integer,T>
BitSetModule.AbstractBitSet. fromInt
(package private) Function1<T,java.lang.Integer>
BitSet.Builder. toInt
(package private) Function1<T,java.lang.Integer>
BitSetModule.AbstractBitSet. toInt
Methods in io.vavr.collection that return Function1 Modifier and Type Method Description default Function1<K,Option<V>>
Map. lift()
Turns this map into a plain function returning an Option result.default Function1<java.lang.Integer,Option<T>>
Seq. lift()
Deprecated.Will be removeddefault Function1<K,V>
Map. withDefault(java.util.function.Function<? super K,? extends V> defaultFunction)
Deprecated.Will be removeddefault Function1<java.lang.Integer,T>
Seq. withDefault(java.util.function.Function<? super java.lang.Integer,? extends T> defaultFunction)
Deprecated.Will be removeddefault Function1<K,V>
Map. withDefaultValue(V defaultValue)
Deprecated.Will be removeddefault Function1<java.lang.Integer,T>
Seq. withDefaultValue(T defaultValue)
Deprecated.Will be removedMethods in io.vavr.collection with parameters of type Function1 Modifier and Type Method Description static <T> BitSet.Builder<T>
BitSet. withRelations(Function1<java.lang.Integer,T> fromInt, Function1<T,java.lang.Integer> toInt)
Constructors in io.vavr.collection with parameters of type Function1 Constructor Description AbstractBitSet(Function1<java.lang.Integer,T> fromInt, Function1<T,java.lang.Integer> toInt)
BitSet1(Function1<java.lang.Integer,T> fromInt, Function1<T,java.lang.Integer> toInt, long elements)
BitSet2(Function1<java.lang.Integer,T> fromInt, Function1<T,java.lang.Integer> toInt, long elements1, long elements2)
BitSetN(Function1<java.lang.Integer,T> fromInt, Function1<T,java.lang.Integer> toInt, long[] elements)
Builder(Function1<java.lang.Integer,T> fromInt, Function1<T,java.lang.Integer> toInt)
-