Uses of Interface
io.vavr.PartialFunction
-
Packages that use PartialFunction Package Description io.vavr BesideAPI
the 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 interface
API.Match.Case<T,R>
static interface
API.Match.Pattern<T,R>
A Pattern is a partialFunction
in 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 class
API.Match.Case0<T,R>
static class
API.Match.Case1<T,T1,R>
static class
API.Match.Case2<T,T1,T2,R>
static class
API.Match.Case3<T,T1,T2,T3,R>
static class
API.Match.Case4<T,T1,T2,T3,T4,R>
static class
API.Match.Case5<T,T1,T2,T3,T4,T5,R>
static class
API.Match.Case6<T,T1,T2,T3,T4,T5,T6,R>
static class
API.Match.Case7<T,T1,T2,T3,T4,T5,T6,T7,R>
static class
API.Match.Case8<T,T1,T2,T3,T4,T5,T6,T7,T8,R>
static class
API.Match.Pattern0<T>
static class
API.Match.Pattern1<T,T1>
static class
API.Match.Pattern2<T,T1,T2>
static class
API.Match.Pattern3<T,T1,T2,T3>
static class
API.Match.Pattern4<T,T1,T2,T3,T4>
static class
API.Match.Pattern5<T,T1,T2,T3,T4,T5>
static class
API.Match.Pattern6<T,T1,T2,T3,T4,T5,T6>
static class
API.Match.Pattern7<T,T1,T2,T3,T4,T5,T6,T7>
static class
API.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 givenValue
to 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 atotalFunction
that returns anOption
result into a partial function. -
Uses of PartialFunction in io.vavr.collection
Subinterfaces of PartialFunction in io.vavr.collection Modifier and Type Interface Description interface
IndexedSeq<T>
Interface for immutable, indexed sequences.interface
LinearSeq<T>
Interface for immutable, linear sequences.interface
List<T>
An immutableList
is an eager sequence of elements.interface
Map<K,V>
An immutableMap
interface.interface
Multimap<K,V>
An immutableMultimap
interface.interface
Seq<T>
Interface for immutable sequential data structures.interface
SortedMap<K,V>
An immutableSortedMap
interface.interface
SortedMultimap<K,V>
An immutableSortedMultimap
interface.interface
Stream<T>
An immutableStream
is lazy sequence of elements which may be infinitely long.Classes in io.vavr.collection that implement PartialFunction Modifier and Type Class Description (package private) class
AbstractMultimap<K,V,M extends Multimap<K,V>>
AnMultimap
implementation (not intended to be public).class
Array<T>
Array is a Traversable wrapper forObject[]
containing elements of typeT
.class
CharSeq
The CharSeq (read: character sequence) collection essentially is a rich String wrapper having all operations we know from the functional Vavr collections.class
HashMap<K,V>
An immutableHashMap
implementation based on a Hash array mapped trie (HAMT).class
HashMultimap<K,V>
class
LinkedHashMap<K,V>
An immutableLinkedHashMap
implementation that has predictable (insertion-order) iteration.class
LinkedHashMultimap<K,V>
ALinkedHashMap
-based implementation ofMultimap
static class
List.Cons<T>
Non-emptyList
, consisting of ahead
and atail
.static class
List.Nil<T>
Representation of the singleton emptyList
.class
Queue<T>
An immutableQueue
stores elements allowing a first-in-first-out (FIFO) retrieval.static class
Stream.Cons<T>
Non-emptyStream
, consisting of ahead
, andtail
.static class
Stream.Empty<T>
The empty Stream.static class
StreamModule.AppendElements<T>
static class
StreamModule.ConsImpl<T>
class
TreeMap<K,V>
SortedMap implementation, backed by a Red/Black Tree.class
TreeMultimap<K,V>
class
Vector<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 thisMap
into aPartialFunction
which is defined at a specific index, if thisMap
contains the given key.default PartialFunction<K,Traversable<V>>
Multimap. asPartialFunction()
Turns thisMultimap
into aPartialFunction
which is defined at a specific index, if thisMultimap
contains the given key.PartialFunction<java.lang.Integer,T>
Seq. asPartialFunction()
Turns thisSeq
into aPartialFunction
which is defined at a specific index, if thisSeq
contains 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 givenpartialFunction
by 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 givenpartialFunction
by 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 givenpartialFunction
by 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 givenpartialFunction
by mapping the value to typeR
.
-