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>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 PartialFunction 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 PartialFunction Modifier and Type Method Description static <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>Function1. partial(java.util.function.Predicate<? super T1> isDefinedAt)static <T,R>
PartialFunction<T,R>PartialFunction. unlift(java.util.function.Function<? super T,? extends Option<? extends R>> totalFunction)Unlifts atotalFunctionthat returns anOptionresult into a partial function. -
Uses of PartialFunction in io.vavr.collection
Subinterfaces of PartialFunction in io.vavr.collection Modifier and Type Interface Description 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.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>>AnMultimapimplementation (not intended to be public).classArray<T>Array is a 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>SortedMap implementation, 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()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 PartialFunction Modifier and Type Method Description <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 java.lang.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 PartialFunction Modifier and Type Method Description default <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 PartialFunction Modifier and Type Method Description default <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.
-