Uses of Interface
io.vavr.Function1
-
Packages that use Function1 Package Description io.vavr BesideAPIthe 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 interfaceAPI.Match.Case<T,R>static interfaceAPI.Match.Pattern<T,R>A Pattern is a partialFunctionin the sense that a function applications returns an optional result of typeOption<R>.interfacePartialFunction<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 classAPI.Match.Case0<T,R>static classAPI.Match.Case1<T,T1,R>static classAPI.Match.Case2<T,T1,T2,R>static classAPI.Match.Case3<T,T1,T2,T3,R>static classAPI.Match.Case4<T,T1,T2,T3,T4,R>static classAPI.Match.Case5<T,T1,T2,T3,T4,T5,R>static classAPI.Match.Case6<T,T1,T2,T3,T4,T5,T6,R>static classAPI.Match.Case7<T,T1,T2,T3,T4,T5,T6,T7,R>static classAPI.Match.Case8<T,T1,T2,T3,T4,T5,T6,T7,T8,R>static classAPI.Match.Pattern0<T>static classAPI.Match.Pattern1<T,T1>static classAPI.Match.Pattern2<T,T1,T2>static classAPI.Match.Pattern3<T,T1,T2,T3>static classAPI.Match.Pattern4<T,T1,T2,T3,T4>static classAPI.Match.Pattern5<T,T1,T2,T3,T4,T5>static classAPI.Match.Pattern6<T,T1,T2,T3,T4,T5,T6>static classAPI.Match.Pattern7<T,T1,T2,T3,T4,T5,T6,T7>static classAPI.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 Functionafterto 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 Functionbeforethe 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 givenpartialFunctioninto a total function that returns anOptionresult.static <T1,R>
Function1<T1,Option<R>>Function1. lift(java.util.function.Function<? super T1,? extends R> partialFunction)Lifts the givenpartialFunctioninto a total function that returns anOptionresult.default Function1<T,Option<R>>PartialFunction. lift()Lifts this partial function into a total function that returns anOptionresult.static <T1,R>
Function1<T1,Try<R>>CheckedFunction1. liftTry(CheckedFunction1<? super T1,? extends R> partialFunction)Lifts the givenpartialFunctioninto a total function that returns anTryresult.static <T1,R>
Function1<T1,Try<R>>Function1. liftTry(java.util.function.Function<? super T1,? extends R> partialFunction)Lifts the givenpartialFunctioninto a total function that returns anTryresult.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 fromrecoverfunction 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 interfaceBitSet<T>An immutableBitSetimplementation.interfaceIndexedSeq<T>Interface for immutable, indexed sequences.interfaceLinearSeq<T>Interface for immutable, linear sequences.interfaceList<T>An immutableListis an eager sequence of elements.interfaceMap<K,V>An immutableMapinterface.interfaceMultimap<K,V>An immutableMultimapinterface.interfaceSeq<T>Interface for immutable sequential data structures.interfaceSet<T>An immutableSetinterface.interfaceSortedMap<K,V>An immutableSortedMapinterface.interfaceSortedMultimap<K,V>An immutableSortedMultimapinterface.interfaceSortedSet<T>An immutableSortedSetinterface.interfaceStream<T>An immutableStreamis lazy sequence of elements which may be infinitely long.Classes in io.vavr.collection that implement Function1 Modifier and Type Class Description (package private) classAbstractMultimap<K,V,M extends Multimap<K,V>>AnMultimapimplementation (not intended to be public).classArray<T>Array is a Traversable wrapper forObject[]containing elements of typeT.static classBitSetModule.AbstractBitSet<T>static classBitSetModule.BitSet1<T>static classBitSetModule.BitSet2<T>static classBitSetModule.BitSetN<T>classCharSeqThe CharSeq (read: character sequence) collection essentially is a rich String wrapper having all operations we know from the functional Vavr collections.classHashMap<K,V>An immutableHashMapimplementation based on a Hash array mapped trie (HAMT).classHashMultimap<K,V>classHashSet<T>An immutableHashSetimplementation.classLinkedHashMap<K,V>An immutableLinkedHashMapimplementation that has predictable (insertion-order) iteration.classLinkedHashMultimap<K,V>ALinkedHashMap-based implementation ofMultimapclassLinkedHashSet<T>An immutableHashSetimplementation that has predictable (insertion-order) iteration.static classList.Cons<T>Non-emptyList, consisting of aheadand atail.static classList.Nil<T>Representation of the singleton emptyList.classQueue<T>An immutableQueuestores elements allowing a first-in-first-out (FIFO) retrieval.static classStream.Cons<T>Non-emptyStream, consisting of ahead, andtail.static classStream.Empty<T>The empty Stream.static classStreamModule.AppendElements<T>static classStreamModule.ConsImpl<T>classTreeMap<K,V>SortedMap implementation, backed by a Red/Black Tree.classTreeMultimap<K,V>classTreeSet<T>SortedSet implementation, backed by a Red/Black Tree.classVector<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. toIntMethods 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)
-