Uses of Interface
io.vavr.Value
-
Packages that use Value 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 Value in io.vavr
Classes in io.vavr that implement Value Modifier and Type Class Description class
Lazy<T>
Represents a lazy evaluated value.Methods in io.vavr with type parameters of type Value 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.Methods in io.vavr that return Value Modifier and Type Method Description <U> Value<U>
Value. map(java.util.function.Function<? super T,? extends U> mapper)
Maps the underlying value to a different component type.static <T> Value<T>
Value. narrow(Value<? extends T> value)
Narrows a widenedValue<? extends T>
toValue<T>
by performing a type-safe cast.Value<T>
Value. peek(java.util.function.Consumer<? super T> action)
Performs the givenaction
on the first element if this is an eager implementation.Methods in io.vavr with parameters of type Value Modifier and Type Method Description static <T> Value<T>
Value. narrow(Value<? extends T> value)
Narrows a widenedValue<? extends T>
toValue<T>
by performing a type-safe cast.static <T,R extends java.util.Collection<T>>
RValueModule. toJavaCollection(Value<T> value, java.util.function.Function<java.lang.Integer,R> containerSupplier)
static <T,R extends java.util.Collection<T>>
RValueModule. toJavaCollection(Value<T> value, java.util.function.Function<java.lang.Integer,R> containerSupplier, int defaultInitialCapacity)
static <T,K,V,E extends Tuple2<? extends K,? extends V>,R extends Map<K,V>>
RValueModule. toMap(Value<T> value, R empty, java.util.function.Function<E,R> ofElement, java.util.function.Function<java.lang.Iterable<E>,R> ofAll, java.util.function.Function<? super T,? extends E> f)
static <T,R extends Traversable<T>>
RValueModule. toTraversable(Value<T> value, R empty, java.util.function.Function<T,R> ofElement, java.util.function.Function<java.lang.Iterable<T>,R> ofAll)
-
Uses of Value in io.vavr.collection
Subinterfaces of Value in io.vavr.collection Modifier and Type Interface Description interface
BitSet<T>
An immutableBitSet
implementation.interface
IndexedSeq<T>
Interface for immutable, indexed sequences.interface
Iterator<T>
io.vavr.collection.Iterator
is a compositional replacement forjava.util.Iterator
whose purpose is to iterate once over a sequence of elements.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
Set<T>
An immutableSet
interface.interface
SortedMap<K,V>
An immutableSortedMap
interface.interface
SortedMultimap<K,V>
An immutableSortedMultimap
interface.interface
SortedSet<T>
An immutableSortedSet
interface.interface
Stream<T>
An immutableStream
is lazy sequence of elements which may be infinitely long.interface
Traversable<T>
An interface for inherently recursive, multi-valued data structures.interface
Tree<T>
A general Tree interface.Classes in io.vavr.collection that implement Value Modifier and Type Class Description (package private) class
AbstractIterator<T>
Provides a commonObject.toString()
implementation.(package private) class
AbstractMultimap<K,V,M extends Multimap<K,V>>
AnMultimap
implementation (not intended to be public).(package private) class
AbstractQueue<T,Q extends AbstractQueue<T,Q>>
class
Array<T>
Array is a Traversable wrapper forObject[]
containing elements of typeT
.static class
BitSetModule.AbstractBitSet<T>
static class
BitSetModule.BitSet1<T>
static class
BitSetModule.BitSet2<T>
static class
BitSetModule.BitSetIterator<T>
static class
BitSetModule.BitSetN<T>
class
CharSeq
The CharSeq (read: character sequence) collection essentially is a rich String wrapper having all operations we know from the functional Vavr collections.static class
HashArrayMappedTrieModule.LeafNodeIterator<K,V>
class
HashMap<K,V>
An immutableHashMap
implementation based on a Hash array mapped trie (HAMT).class
HashMultimap<K,V>
class
HashSet<T>
An immutableHashSet
implementation.static class
IteratorModule.CachedIterator<T>
static class
IteratorModule.ConcatIterator<T>
static class
IteratorModule.DistinctIterator<T,U>
static class
IteratorModule.EmptyIterator
static class
IteratorModule.GroupedIterator<T>
class
LinkedHashMap<K,V>
An immutableLinkedHashMap
implementation that has predictable (insertion-order) iteration.class
LinkedHashMultimap<K,V>
ALinkedHashMap
-based implementation ofMultimap
class
LinkedHashSet<T>
An immutableHashSet
implementation that has predictable (insertion-order) iteration.static class
List.Cons<T>
Non-emptyList
, consisting of ahead
and atail
.static class
List.Nil<T>
Representation of the singleton emptyList
.class
PriorityQueue<T>
A PriorityQueue.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>
static class
StreamModule.FlatMapIterator<T,U>
static class
StreamModule.StreamIterator<T>
static class
Tree.Empty<T>
The empty tree.static class
Tree.Node<T>
Represents a tree node.class
TreeMap<K,V>
SortedMap implementation, backed by a Red/Black Tree.class
TreeMultimap<K,V>
class
TreeSet<T>
SortedSet implementation, backed by a Red/Black Tree.class
Vector<T>
Vector is the default Seq implementation that provides effectively constant time access to any element. -
Uses of Value in io.vavr.concurrent
Subinterfaces of Value in io.vavr.concurrent Modifier and Type Interface Description interface
Future<T>
A Future is a computation result that becomes available at some point.Classes in io.vavr.concurrent that implement Value Modifier and Type Class Description (package private) class
FutureImpl<T>
INTERNAL API - This class is subject to change. -
Uses of Value in io.vavr.control
Subinterfaces of Value in io.vavr.control Modifier and Type Interface Description interface
Either<L,R>
Either represents a value of two possible types.interface
Option<T>
Replacement forOptional
.interface
Try<T>
The Try control gives us the ability write safe code without focusing on try-catch blocks in the presence of exceptions.interface
Validation<E,T>
An implementation similar to scalaz's Validation control.Classes in io.vavr.control that implement Value Modifier and Type Class Description static class
Either.Left<L,R>
TheLeft
version of anEither
.static class
Either.LeftProjection<L,R>
Deprecated.Either is right-biased.static class
Either.Right<L,R>
TheRight
version of anEither
.static class
Either.RightProjection<L,R>
Deprecated.Either is right-biased.static class
Option.None<T>
None is a singleton representation of the undefinedOption
.static class
Option.Some<T>
Some represents a definedOption
.static class
Try.Failure<T>
A failed Try.static class
Try.Success<T>
A succeeded Try.static class
Validation.Invalid<E,T>
An invalid Validationstatic class
Validation.Valid<E,T>
A valid Validation
-