Uses of Interface
io.vavr.Value
-
Packages that use Value 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 Value in io.vavr
Classes in io.vavr that implement Value Modifier and Type Class Description classLazy<T>Represents a lazily 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()Creates a partial function that maps a givenValueto its underlying value.Methods in io.vavr that return Value Modifier and Type Method Description <U> Value<U>Value. map(@NonNull java.util.function.Function<? super T,? extends U> mapper)Maps the underlying value to a different component type.default <U> Value<U>Value. mapTo(U value)Maps the underlying value to another fixed value.default Value<java.lang.Void>Value. mapToVoid()Maps the underlying value to Voidstatic <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(@NonNull java.util.function.Consumer<? super T> action)Performs the givenactionon 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 interfaceBitSet<T>An immutableBitSetimplementation.interfaceIndexedSeq<T>Represents an immutable, indexed sequence of elements.interfaceIterator<T>A compositional alternative tojava.util.Iteratordesigned for single-pass traversal of a sequence.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.interfaceSet<T>An immutableSetinterface.interfaceSortedMap<K,V>An immutableSortedMapinterface.interfaceSortedMultimap<K,V>An immutableSortedMultimapinterface.interfaceSortedSet<T>An immutableSortedSetinterface.interfaceStream<T>An immutableStreamis lazy sequence of elements which may be infinitely long.interfaceTraversable<T>Represents a recursive, multi-valued data structure whose elements can be traversed in order.interfaceTree<T>A general Tree interface.Classes in io.vavr.collection that implement Value Modifier and Type Class Description (package private) classAbstractIterator<T>Provides a commonObject.toString()implementation.(package private) classAbstractMultimap<K,V,M extends Multimap<K,V>>An abstract base implementation of theMultimapinterface that provides common functionality for concrete Multimap implementations.(package private) classAbstractQueue<T,Q extends AbstractQueue<T,Q>>classArray<T>Array is an immutable Traversable wrapper forObject[]containing elements of typeT.static classBitSetModule.AbstractBitSet<T>static classBitSetModule.BitSet1<T>static classBitSetModule.BitSet2<T>static classBitSetModule.BitSetIterator<T>static classBitSetModule.BitSetN<T>classCharSeqThe CharSeq (read: character sequence) collection essentially is a rich String wrapper having all operations we know from the functional Vavr collections.static classHashArrayMappedTrieModule.LeafNodeIterator<K,V>classHashMap<K,V>An immutableHashMapimplementation based on a Hash array mapped trie (HAMT).classHashMultimap<K,V>classHashSet<T>An immutableHashSetimplementation.static classIteratorModule.CachedIterator<T>static classIteratorModule.ConcatIterator<T>static classIteratorModule.DistinctIterator<T,U>static classIteratorModule.EmptyIteratorstatic classIteratorModule.GroupedIterator<T>classLinkedHashMap<K,V>An immutableLinkedHashMapimplementation that has predictable (insertion-order) iteration.classLinkedHashMultimap<K,V>ALinkedHashMap-based implementation ofMultimapclassLinkedHashSet<T>An immutableHashSetimplementation that has predictable (insertion-order) iteration.static classList.Cons<T>Non-emptyList, consisting of aheadand atail.static classList.Nil<T>Representation of the singleton emptyList.classPriorityQueue<T>A PriorityQueue.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>static classStreamModule.FlatMapIterator<T,U>static classStreamModule.StreamIterator<T>static classTree.Empty<T>The empty tree.static classTree.Node<T>Represents a tree node.classTreeMap<K,V>An immutableSortedMapimplementation backed by a Red-Black tree.classTreeMultimap<K,V>classTreeSet<T>SortedSet implementation, backed by a Red/Black Tree.classVector<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 interfaceFuture<T>Represents the result of an asynchronous computation that becomes available at some point in the future.Classes in io.vavr.concurrent that implement Value Modifier and Type Class Description (package private) classFutureImpl<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 interfaceEither<L,R>Represents a value of one of two possible types:Either.LeftorEither.Right.interfaceOption<T>A replacement forOptional.interfaceTry<T>A control structure that allows writing safe code without explicitly managing try-catch blocks for exceptions.interfaceValidation<E,T>An implementation similar to Scalaz's Validation control.Classes in io.vavr.control that implement Value Modifier and Type Class Description static classEither.Left<L,R>TheLeftversion of anEither.static classEither.LeftProjection<L,R>Deprecated.Either is right-biased.static classEither.Right<L,R>TheRightversion of anEither.static classEither.RightProjection<L,R>Deprecated.Either is right-biased.static classOption.None<T>None is a singleton representation of the undefinedOption.static classOption.Some<T>Some represents a definedOption.static classTry.Failure<T>Represents a failedTrycontaining aThrowableas the cause.static classTry.Success<T>Represents a successfulTrycontaining a value.static classValidation.Invalid<E,T>An invalid Validationstatic classValidation.Valid<E,T>A valid Validation
-