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> static 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> static final classAPI.Match.Case1<T,T1, R> static final classAPI.Match.Case2<T,T1, T2, R> static final classAPI.Match.Case3<T,T1, T2, T3, R> static final classAPI.Match.Case4<T,T1, T2, T3, T4, R> static final classAPI.Match.Case5<T,T1, T2, T3, T4, T5, R> static final classAPI.Match.Case6<T,T1, T2, T3, T4, T5, T6, R> static final classAPI.Match.Case7<T,T1, T2, T3, T4, T5, T6, T7, R> static final classAPI.Match.Case8<T,T1, T2, T3, T4, T5, T6, T7, T8, R> static classstatic 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 PartialFunctionModifier and TypeMethodDescriptionstatic <T, V extends Value<T>>
PartialFunction<V, T> PartialFunction.getIfDefined()Factory method for creating a partial function that maps a givenValueto its underlying value.default PartialFunction<T1, R> static <T,R> PartialFunction <T, R> Unlifts atotalFunctionthat returns anOptionresult into a partial function. -
Uses of PartialFunction in io.vavr.collection
Subinterfaces of PartialFunction in io.vavr.collectionModifier and TypeInterfaceDescriptioninterfaceIndexedSeq<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.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>> AnMultimapimplementation (not intended to be public).final classArray<T>Array is a 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> SortedMap implementation, 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()Turns thisSeqinto aPartialFunctionwhich is defined at a specific index, if thisSeqcontains at least index + 1 elements.Methods in io.vavr.collection with parameters of type PartialFunctionModifier and TypeMethodDescription<R> Array<R> Array.collect(PartialFunction<? super T, ? extends R> partialFunction) default <R> SortedSet<R> BitSet.collect(PartialFunction<? super T, ? extends R> partialFunction) <R> IndexedSeq<R> CharSeq.collect(PartialFunction<? super Character, ? extends R> partialFunction) <R> HashSet<R> HashSet.collect(PartialFunction<? super T, ? extends R> partialFunction) <R> IndexedSeq<R> IndexedSeq.collect(PartialFunction<? super T, ? extends R> partialFunction) default <R> Iterator<R> Iterator.collect(PartialFunction<? super T, ? extends R> partialFunction) <R> LinearSeq<R> LinearSeq.collect(PartialFunction<? super T, ? extends R> partialFunction) <R> LinkedHashSet<R> LinkedHashSet.collect(PartialFunction<? super T, ? extends R> partialFunction) default <R> List<R> List.collect(PartialFunction<? super T, ? extends R> partialFunction) default <R> Seq<R> Map.collect(PartialFunction<? super Tuple2<K, V>, ? extends R> partialFunction) default <R> Seq<R> Multimap.collect(PartialFunction<? super Tuple2<K, V>, ? extends R> partialFunction) <R> PriorityQueue<R> PriorityQueue.collect(PartialFunction<? super T, ? extends R> partialFunction) <R> Queue<R> Queue.collect(PartialFunction<? super T, ? extends R> partialFunction) <R> Seq<R> Seq.collect(PartialFunction<? super T, ? extends R> partialFunction) <R> Set<R> Set.collect(PartialFunction<? super T, ? extends R> partialFunction) <R> SortedSet<R> SortedSet.collect(PartialFunction<? super T, ? extends R> partialFunction) default <R> Stream<R> Stream.collect(PartialFunction<? super T, ? extends R> partialFunction) <R> Traversable<R> Traversable.collect(PartialFunction<? super T, ? extends R> partialFunction) Collects all elements that are in the domain of the givenpartialFunctionby mapping the elements to typeR.default <R> Tree<R> Tree.collect(PartialFunction<? super T, ? extends R> partialFunction) <R> TreeSet<R> TreeSet.collect(PartialFunction<? super T, ? extends R> partialFunction) <R> Vector<R> Vector.collect(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(PartialFunction<? super T, ? extends R> partialFunction) Collects value that is in the domain of the givenpartialFunctionby mapping the value to typeR. -
Uses of PartialFunction in io.vavr.control
Methods in io.vavr.control with parameters of type PartialFunctionModifier and TypeMethodDescriptiondefault <R> Option<R> Option.collect(PartialFunction<? super T, ? extends R> partialFunction) Collects value that is in the domain of the givenpartialFunctionby mapping the value to typeR.default <R> Try<R> Try.collect(PartialFunction<? super T, ? extends R> partialFunction) Collects value that is in the domain of the givenpartialFunctionby mapping the value to typeR.