Uses of Interface
io.vavr.PartialFunction
-
Packages that use PartialFunction 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.io.vavr.concurrent This package contains basic building blocks for creating fast, asynchronous, non-blocking parallel code.io.vavr.control -
-
Uses of PartialFunction in io.vavr
Subinterfaces of PartialFunction in io.vavr Modifier and Type Interface Description static interfaceAPI.Match.Case<T,R>Base interface for all the Casesstatic interfaceAPI.Match.Pattern<T,R>A Pattern is a partialFunctionin the sense that a function applications returns an optional result of typeOption<R>.Classes in io.vavr that implement PartialFunction Modifier and Type Class Description static classAPI.Match.Case0<T,R>API.Match.Caseimplementation for simplest casestatic classAPI.Match.Case1<T,T1,R>API.Match.Caseimplementation for a case with 1 intermediate typestatic classAPI.Match.Case2<T,T1,T2,R>API.Match.Caseimplementation for a case with 2 intermediate typesstatic classAPI.Match.Case3<T,T1,T2,T3,R>API.Match.Caseimplementation for a case with 3 intermediate typesstatic classAPI.Match.Case4<T,T1,T2,T3,T4,R>API.Match.Caseimplementation for a case with 4 intermediate typesstatic classAPI.Match.Case5<T,T1,T2,T3,T4,T5,R>API.Match.Caseimplementation for a case with 5 intermediate typesstatic classAPI.Match.Case6<T,T1,T2,T3,T4,T5,T6,R>API.Match.Caseimplementation for a case with 6 intermediate typesstatic classAPI.Match.Case7<T,T1,T2,T3,T4,T5,T6,T7,R>API.Match.Caseimplementation for a case with 7 intermediate typesstatic classAPI.Match.Case8<T,T1,T2,T3,T4,T5,T6,T7,T8,R>API.Match.Caseimplementation for a case with 8 intermediate typesstatic classAPI.Match.Pattern0<T>AAPI.Match.Patternimplementation for the simplest patternstatic classAPI.Match.Pattern1<T,T1>AAPI.Match.Patternimplementation for the pattern with 1 intermediate typestatic classAPI.Match.Pattern2<T,T1,T2>AAPI.Match.Patternimplementation for the pattern with 2 intermediate typesstatic classAPI.Match.Pattern3<T,T1,T2,T3>AAPI.Match.Patternimplementation for the pattern with 3 intermediate typesstatic classAPI.Match.Pattern4<T,T1,T2,T3,T4>AAPI.Match.Patternimplementation for the pattern with 4 intermediate typesstatic classAPI.Match.Pattern5<T,T1,T2,T3,T4,T5>AAPI.Match.Patternimplementation for the pattern with 5 intermediate typesstatic classAPI.Match.Pattern6<T,T1,T2,T3,T4,T5,T6>AAPI.Match.Patternimplementation for the pattern with 6 intermediate typesstatic classAPI.Match.Pattern7<T,T1,T2,T3,T4,T5,T6,T7>AAPI.Match.Patternimplementation for the pattern with 7 intermediate typesstatic classAPI.Match.Pattern8<T,T1,T2,T3,T4,T5,T6,T7,T8>AAPI.Match.Patternimplementation for the pattern with 8 intermediate typesMethods in io.vavr that return PartialFunction Modifier and Type Method Description static <T,V extends Value<T>>
PartialFunction<V,T>PartialFunction. getIfDefined()Creates a partial function that maps a givenValueto its underlying value.default PartialFunction<T1,R>Function1. partial(@NonNull java.util.function.Predicate<? super T1> isDefinedAt)static <T,R>
PartialFunction<T,R>PartialFunction. unlift(@NonNull java.util.function.Function<? super T,? extends Option<? extends R>> totalFunction)Converts (or "unlifts") atotalFunctionthat returns anOptioninto a partial function. -
Uses of PartialFunction in io.vavr.collection
Subinterfaces of PartialFunction in io.vavr.collection Modifier and Type Interface Description interfaceIndexedSeq<T>Represents an immutable, indexed sequence of elements.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>Base interface for immutable, sequential collections.interfaceSortedMap<K,V>An immutableSortedMapinterface.interfaceSortedMultimap<K,V>An immutableSortedMultimapinterface.interfaceStream<T>An immutableStreamis lazy sequence of elements which may be infinitely long.Classes in io.vavr.collection that implement PartialFunction Modifier and Type Class Description (package private) classAbstractMultimap<K,V,M extends Multimap<K,V>>An abstract base implementation of theMultimapinterface that provides common functionality for concrete Multimap implementations.classArray<T>Array is an immutable Traversable wrapper forObject[]containing elements of typeT.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>classLinkedHashMap<K,V>An immutableLinkedHashMapimplementation that has predictable (insertion-order) iteration.classLinkedHashMultimap<K,V>ALinkedHashMap-based implementation ofMultimapstatic 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>An immutableSortedMapimplementation backed by a Red-Black tree.classTreeMultimap<K,V>classVector<T>Vector is the default Seq implementation that provides effectively constant time access to any element.Methods in io.vavr.collection that return PartialFunction Modifier and Type Method Description default PartialFunction<java.lang.Integer,T>IndexedSeq. asPartialFunction()default PartialFunction<java.lang.Integer,T>LinearSeq. asPartialFunction()default PartialFunction<K,V>Map. asPartialFunction()Turns thisMapinto aPartialFunctionwhich is defined at a specific index, if thisMapcontains the given key.default PartialFunction<K,Traversable<V>>Multimap. asPartialFunction()Turns thisMultimapinto aPartialFunctionwhich is defined at a specific index, if thisMultimapcontains the given key.PartialFunction<java.lang.Integer,T>Seq. asPartialFunction()Returns aPartialFunctionview of thisSeq, where the function is defined at an index if this sequence contains at leastindex + 1elements.Methods in io.vavr.collection with parameters of type PartialFunction Modifier and Type Method Description <R> Array<R>Array. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)default <R> SortedSet<R>BitSet. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)<R> IndexedSeq<R>CharSeq. collect(@NonNull PartialFunction<? super java.lang.Character,? extends R> partialFunction)<R> HashSet<R>HashSet. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)<R> IndexedSeq<R>IndexedSeq. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)default <R> Iterator<R>Iterator. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)<R> LinearSeq<R>LinearSeq. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)<R> LinkedHashSet<R>LinkedHashSet. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)default <R> List<R>List. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)default <R> Seq<R>Map. collect(@NonNull PartialFunction<? super Tuple2<K,V>,? extends R> partialFunction)default <R> Seq<R>Multimap. collect(@NonNull PartialFunction<? super Tuple2<K,V>,? extends R> partialFunction)<R> PriorityQueue<R>PriorityQueue. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)<R> Queue<R>Queue. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)<R> Seq<R>Seq. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)<R> Set<R>Set. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)<R> SortedSet<R>SortedSet. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)default <R> Stream<R>Stream. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)<R> Traversable<R>Traversable. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)Applies aPartialFunctionto all elements that are defined for it and collects the results.default <R> Tree<R>Tree. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)<R> TreeSet<R>TreeSet. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)<R> Vector<R>Vector. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction) -
Uses of PartialFunction in io.vavr.concurrent
Methods in io.vavr.concurrent with parameters of type PartialFunction Modifier and Type Method Description default <R> Future<R>Future. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)Applies apartialFunctionto the value of thisFuture, collecting results only for values where the function is defined. -
Uses of PartialFunction in io.vavr.control
Methods in io.vavr.control with parameters of type PartialFunction Modifier and Type Method Description default <R> Option<R>Option. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)Applies apartialFunctionto the value of thisOptionif it is defined for that value, and wraps the result in a newOption.default <R> Try<R>Try. collect(@NonNull PartialFunction<? super T,? extends R> partialFunction)Transforms the value of thisTryusing the givenPartialFunctionif it is defined at the value.
-