Uses of Interface
io.vavr.PartialFunction
Packages that use PartialFunction
Package
Description
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples.Purely functional collections based on Traversable.
This package contains basic building blocks for creating fast, asynchronous, non-blocking parallel code.
-
Uses of PartialFunction in io.vavr
Subinterfaces of PartialFunction in io.vavrModifier and TypeInterfaceDescriptionstatic 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 PartialFunctionModifier and TypeClassDescriptionstatic final classAPI.Match.Case0<T,R> API.Match.Caseimplementation for simplest casestatic final classAPI.Match.Case1<T,T1, R> API.Match.Caseimplementation for a case with 1 intermediate typestatic final classAPI.Match.Case2<T,T1, T2, R> API.Match.Caseimplementation for a case with 2 intermediate typesstatic final classAPI.Match.Case3<T,T1, T2, T3, R> API.Match.Caseimplementation for a case with 3 intermediate typesstatic final classAPI.Match.Case4<T,T1, T2, T3, T4, R> API.Match.Caseimplementation for a case with 4 intermediate typesstatic final classAPI.Match.Case5<T,T1, T2, T3, T4, T5, R> API.Match.Caseimplementation for a case with 5 intermediate typesstatic final classAPI.Match.Case6<T,T1, T2, T3, T4, T5, T6, R> API.Match.Caseimplementation for a case with 6 intermediate typesstatic final classAPI.Match.Case7<T,T1, T2, T3, T4, T5, T6, T7, R> API.Match.Caseimplementation for a case with 7 intermediate typesstatic final classAPI.Match.Case8<T,T1, T2, T3, T4, T5, T6, T7, T8, R> API.Match.Caseimplementation for a case with 8 intermediate typesstatic classAAPI.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 PartialFunctionModifier and TypeMethodDescriptionstatic <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> static <T,R> PartialFunction <T, R> Converts (or "unlifts") atotalFunctionthat returns anOptioninto a partial function. -
Uses of PartialFunction in io.vavr.collection
Subinterfaces of PartialFunction in io.vavr.collectionModifier and TypeInterfaceDescriptioninterfaceIndexedSeq<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 PartialFunctionModifier and TypeClassDescription(package private) classAbstractMultimap<K, V, M extends Multimap<K,V>> An abstract base implementation of theMultimapinterface that provides common functionality for concrete Multimap implementations.final classArray<T>Array is an immutable Traversable wrapper forObject[]containing elements of typeT.final classThe CharSeq (read: character sequence) collection essentially is a rich String wrapper having all operations we know from the functional Vavr collections.final classHashMap<K,V> An immutableHashMapimplementation based on a Hash array mapped trie (HAMT).final classHashMultimap<K,V> final classLinkedHashMap<K,V> An immutableLinkedHashMapimplementation that has predictable (insertion-order) iteration.final classLinkedHashMultimap<K,V> ALinkedHashMap-based implementation ofMultimapstatic final classList.Cons<T>Non-emptyList, consisting of aheadand atail.static final classList.Nil<T>Representation of the singleton emptyList.final classQueue<T>An immutableQueuestores elements allowing a first-in-first-out (FIFO) retrieval.static classStream.Cons<T>Non-emptyStream, consisting of ahead, andtail.static final classStream.Empty<T>The empty Stream.static final classstatic final classfinal classTreeMap<K,V> An immutableSortedMapimplementation backed by a Red-Black tree.final classTreeMultimap<K,V> final classVector<T>Vector is the default Seq implementation that provides effectively constant time access to any element.Methods in io.vavr.collection that return PartialFunctionModifier and TypeMethodDescriptiondefault PartialFunction<Integer, T> IndexedSeq.asPartialFunction()default PartialFunction<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.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 PartialFunctionModifier and TypeMethodDescription<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 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 PartialFunctionModifier and TypeMethodDescriptiondefault <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 PartialFunctionModifier and TypeMethodDescriptiondefault <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.