Uses of Interface
io.vavr.collection.Traversable
Packages that use Traversable
Package
Description
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples.Purely functional collections based on Traversable.
-
Uses of Traversable in io.vavr
Methods in io.vavr with type parameters of type TraversableModifier and TypeMethodDescriptionstatic <T, R extends Traversable<T>>
RValueModule.toTraversable(Value<T> value, R empty, Function<T, R> ofElement, Function<Iterable<T>, R> ofAll) -
Uses of Traversable in io.vavr.collection
Classes in io.vavr.collection with type parameters of type TraversableModifier and TypeClassDescriptionprivate static classJavaConverters.HasDelegate<C extends Traversable<?>>Encapsulates the access to delegate and performs mutability checks.Subinterfaces of Traversable in io.vavr.collectionModifier and TypeInterfaceDescriptioninterfaceBitSet<T>An immutableBitSetimplementation.interfaceIndexedSeq<T>Interface for immutable, indexed sequences.interfaceIterator<T>io.vavr.collection.Iteratoris a compositional replacement forjava.util.Iteratorwhose purpose is to iterate once over a sequence of elements.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.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.interfaceTree<T>A general Tree interface.Classes in io.vavr.collection that implement TraversableModifier and TypeClassDescription(package private) classProvides a commonObject.toString()implementation.(package private) classAbstractMultimap<K, V, M extends Multimap<K,V>> AnMultimapimplementation (not intended to be public).(package private) classAbstractQueue<T, Q extends AbstractQueue<T,Q>> final classArray<T>Array is a Traversable wrapper forObject[]containing elements of typeT.static classstatic classstatic classstatic classstatic classfinal classThe CharSeq (read: character sequence) collection essentially is a rich String wrapper having all operations we know from the functional Vavr collections.static classfinal classHashMap<K,V> An immutableHashMapimplementation based on a Hash array mapped trie (HAMT).final classHashMultimap<K,V> final classHashSet<T>An immutableHashSetimplementation.static final classstatic final classstatic final classstatic final classstatic final classfinal classLinkedHashMap<K,V> An immutableLinkedHashMapimplementation that has predictable (insertion-order) iteration.final classLinkedHashMultimap<K,V> ALinkedHashMap-based implementation ofMultimapfinal classAn immutableHashSetimplementation that has predictable (insertion-order) iteration.static final classList.Cons<T>Non-emptyList, consisting of aheadand atail.static final classList.Nil<T>Representation of the singleton emptyList.final classA PriorityQueue.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 classstatic final classstatic final classstatic final classTree.Empty<T>The empty tree.static final classTree.Node<T>Represents a tree node.final classTreeMap<K,V> SortedMap implementation, backed by a Red/Black Tree.final classTreeMultimap<K,V> final classTreeSet<T>SortedSet implementation, backed by a Red/Black Tree.final classVector<T>Vector is the default Seq implementation that provides effectively constant time access to any element.Subinterfaces with type arguments of type Traversable in io.vavr.collectionFields in io.vavr.collection declared as TraversableFields in io.vavr.collection with type parameters of type TraversableModifier and TypeFieldDescriptionprivate final BiFunction<Traversable<?>, Object, Traversable<?>> Multimap.ContainerType.addprivate final BiFunction<Traversable<?>, Object, Traversable<?>> Multimap.ContainerType.addprotected final Map<K, Traversable<V>> AbstractMultimap.backprotected final AbstractMultimap.SerializableSupplier<Traversable<?>> AbstractMultimap.emptyContainerprivate final AbstractMultimap.SerializableSupplier<Traversable<?>> HashMultimap.Builder.emptyContainerprivate final AbstractMultimap.SerializableSupplier<Traversable<?>> LinkedHashMultimap.Builder.emptyContainerprivate final AbstractMultimap.SerializableSupplier<Traversable<?>> TreeMultimap.Builder.emptyContainerprivate final BiFunction<Traversable<?>, Object, Traversable<?>> Multimap.ContainerType.removeprivate final BiFunction<Traversable<?>, Object, Traversable<?>> Multimap.ContainerType.removeMethods in io.vavr.collection with type parameters of type TraversableModifier and TypeMethodDescription(package private) static <C extends Traversable<T>, T>
C(package private) static <C extends Traversable<T>, T>
CCollections.fillObject(int n, T element, C empty, Function<T[], C> of) (package private) static <C extends Traversable<T>, T>
Tuple2<C, C> Collections.partition(C collection, Function<Iterable<T>, C> creator, Predicate<? super T> predicate) (package private) static <C extends Traversable<T>, T>
C(package private) static <C extends Traversable<T>, T>
C(package private) static <C extends Traversable<T>, T>
CCollections.removeAll(C source, T element) (package private) static <C extends Traversable<T>, T>
C(package private) static <T, U, R extends Traversable<U>>
RCollections.scanLeft(Traversable<? extends T> source, U zero, BiFunction<? super U, ? super T, ? extends U> operation, Function<Iterator<U>, R> finisher) (package private) static <T, U, R extends Traversable<U>>
RCollections.scanRight(Traversable<? extends T> source, U zero, BiFunction<? super T, ? super U, ? extends U> operation, Function<Iterator<U>, R> finisher) (package private) static <C extends Traversable<T>, T>
CMethods in io.vavr.collection that return TraversableModifier and TypeMethodDescription(package private) <T> Traversable<T> Multimap.ContainerType.add(Traversable<?> container, T elem) default Traversable<V> Deprecated.<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.Traversable.distinct()Returns a new version of this which contains no duplicates.Traversable.distinctBy(Comparator<? super T> comparator) Returns a new version of this which contains no duplicates.<U> Traversable<T> Traversable.distinctBy(Function<? super T, ? extends U> keyExtractor) Returns a new version of this which contains no duplicates.Traversable.drop(int n) Drops the first n elements of this or all elements, if this length < n.Traversable.dropRight(int n) Drops the last n elements of this or all elements, if this length < n.Drops elements until the predicate holds for the current element.Drops elements while the predicate holds for the current element.Returns a new traversable consisting of all elements which satisfy the given predicate.<U> Traversable<U> FlatMaps this Traversable.AbstractMultimap.getOrElse(K key, Traversable<? extends V> defaultValue) Multimap.getOrElse(K key, Traversable<? extends V> defaultValue) Returns the value associated with a key, or a default value if the key is not contained in the mapTraversable.init()Dual of Traversable.tail(), returning all elements except the last.<U> Traversable<U> Maps the elements of thisTraversableto elements of a new type preserving their order, if any.static <T> Traversable<T> Traversable.narrow(Traversable<? extends T> traversable) Narrows a widenedTraversable<? extends T>toTraversable<T>by performing a type-safe cast.Returns thisTraversableif it is nonempty, otherwise return the alternative.Returns thisTraversableif it is nonempty, otherwise return the result of evaluating supplier.default Traversable<T> Returns a new traversable consisting of all elements which do not satisfy the given predicate.(package private) <T> Traversable<T> Multimap.ContainerType.remove(Traversable<?> container, T elem) Replaces the first occurrence (if exists) of the given currentElement with newElement.Traversable.replaceAll(T currentElement, T newElement) Replaces all occurrences of the given currentElement with newElement.Keeps all occurrences of the given elements from this.default Traversable<T> Computes a prefix scan of the elements of the collection.<U> Traversable<U> Traversable.scanLeft(U zero, BiFunction<? super U, ? super T, ? extends U> operation) Produces a collection containing cumulative results of applying the operator going left to right.<U> Traversable<U> Traversable.scanRight(U zero, BiFunction<? super T, ? super U, ? extends U> operation) Produces a collection containing cumulative results of applying the operator going right to left.Traversable.tail()Drops the first element of a non-empty Traversable.Traversable.take(int n) Takes the first n elements of this or all elements, if this length < n.Traversable.takeRight(int n) Takes the last n elements of this or all elements, if this length < n.Takes elements until the predicate holds for the current element.Takes elements while the predicate holds for the current element.AbstractMultimap.values()Multimap.values()<U> Traversable<Tuple2<T, U>> Returns a traversable formed from this traversable and another Iterable collection by combining corresponding elements in pairs.<U> Traversable<Tuple2<T, U>> Returns a traversable formed from this traversable and another Iterable by combining corresponding elements in pairs.<U,R> Traversable <R> Traversable.zipWith(Iterable<? extends U> that, BiFunction<? super T, ? super U, ? extends R> mapper) Returns a traversable formed from this traversable and another Iterable collection by mapping elements.Traversable.zipWithIndex()Zips this traversable with its indices.<U> Traversable<U> Traversable.zipWithIndex(BiFunction<? super T, ? super Integer, ? extends U> mapper) Zips this traversable with its indices by applying mapper provided.Methods in io.vavr.collection that return types with arguments of type TraversableModifier and TypeMethodDescriptionMap<K, Traversable<V>> AbstractMultimap.asMap()Map<K, Traversable<V>> Multimap.asMap()Converts thisMultimapto aMapdefault PartialFunction<K, Traversable<V>> Multimap.asPartialFunction()Turns thisMultimapinto aPartialFunctionwhich is defined at a specific index, if thisMultimapcontains the given key.Returns theSomeof value to which the specified key is mapped, orNoneif this multimap contains no mapping for the key.<C> Map<C, ? extends Traversable<T>> Groups this elements by classifying the elements.Iterator<? extends Traversable<T>> Traversable.grouped(int size) Groups thisTraversableinto fixed size blocks.default Option<? extends Traversable<T>> Traversable.initOption()Dual of Traversable.tailOption(), returning all elements except the last asOption.Tuple2<? extends Traversable<T>, ? extends Traversable<T>> Creates a partition of thisTraversableby splitting this elements in two in distinct traversables according to a predicate.Tuple2<? extends Traversable<T>, ? extends Traversable<T>> Creates a partition of thisTraversableby splitting this elements in two in distinct traversables according to a predicate.Iterator<? extends Traversable<T>> Slides a non-overlapping window of a variable size over thisTraversable.Iterator<? extends Traversable<T>> Traversable.sliding(int size) Slides a window of a specificsizeand step size 1 over thisTraversableby callingTraversable.sliding(int, int).Iterator<? extends Traversable<T>> Traversable.sliding(int size, int step) Slides a window of a specificsizeandstepsize over thisTraversable.Tuple2<? extends Traversable<T>, ? extends Traversable<T>> Returns a tuple where the first element is the longest prefix of elements that satisfy the givenpredicateand the second element is the remainder.Tuple2<? extends Traversable<T>, ? extends Traversable<T>> Returns a tuple where the first element is the longest prefix of elements that satisfy the givenpredicateand the second element is the remainder.Option<? extends Traversable<T>> Traversable.tailOption()Drops the first element of a non-empty Traversable and returns anOption.<T1,T2> Tuple2 <? extends Traversable<T1>, ? extends Traversable<T2>> Unzips this elements by mapping this elements to pairs which are subsequently split into two distinct sets.<T1,T2> Tuple2 <? extends Traversable<T1>, ? extends Traversable<T2>> Unzips this elements by mapping this elements to pairs which are subsequently split into two distinct sets.<T1,T2, T3> Tuple3 <? extends Traversable<T1>, ? extends Traversable<T2>, ? extends Traversable<T3>> Unzips this elements by mapping this elements to triples which are subsequently split into three distinct sets.<T1,T2, T3> Tuple3 <? extends Traversable<T1>, ? extends Traversable<T2>, ? extends Traversable<T3>> Unzips this elements by mapping this elements to triples which are subsequently split into three distinct sets.<T1,T2, T3> Tuple3 <? extends Traversable<T1>, ? extends Traversable<T2>, ? extends Traversable<T3>> Unzips this elements by mapping this elements to triples which are subsequently split into three distinct sets.Methods in io.vavr.collection with parameters of type TraversableModifier and TypeMethodDescription(package private) <T> Traversable<T> Multimap.ContainerType.add(Traversable<?> container, T elem) AbstractMultimap.getOrElse(K key, Traversable<? extends V> defaultValue) Multimap.getOrElse(K key, Traversable<? extends V> defaultValue) Returns the value associated with a key, or a default value if the key is not contained in the mapprivate static <T,C> Set <Map.Entry<C, Collection<T>>> Collections.groupBy(Traversable<T> source, Function<? super T, ? extends C> classifier) Collections.groupBy(Traversable<T> source, Function<? super T, ? extends C> classifier, Function<? super Iterable<T>, R> mapper) (package private) static <T> TCollections.last(Traversable<T> source) static <T> Traversable<T> Traversable.narrow(Traversable<? extends T> traversable) Narrows a widenedTraversable<? extends T>toTraversable<T>by performing a type-safe cast.(package private) <T> Traversable<T> Multimap.ContainerType.remove(Traversable<?> container, T elem) (package private) static <T, U, R extends Traversable<U>>
RCollections.scanLeft(Traversable<? extends T> source, U zero, BiFunction<? super U, ? super T, ? extends U> operation, Function<Iterator<U>, R> finisher) (package private) static <T, U, R extends Traversable<U>>
RCollections.scanRight(Traversable<? extends T> source, U zero, BiFunction<? super T, ? super U, ? extends U> operation, Function<Iterator<U>, R> finisher) Method parameters in io.vavr.collection with type arguments of type TraversableModifier and TypeMethodDescriptionprotected abstract <K2,V2> Multimap <K2, V2> AbstractMultimap.createFromMap(Map<K2, Traversable<V2>> back) protected <K2,V2> HashMultimap <K2, V2> HashMultimap.createFromMap(Map<K2, Traversable<V2>> back) protected <K2,V2> LinkedHashMultimap <K2, V2> LinkedHashMultimap.createFromMap(Map<K2, Traversable<V2>> back) protected <K2,V2> TreeMultimap <K2, V2> TreeMultimap.createFromMap(Map<K2, Traversable<V2>> back) AbstractMultimap.merge(Multimap<K2, V2> that, BiFunction<Traversable<V>, Traversable<V2>, Traversable<V>> collisionResolution) AbstractMultimap.merge(Multimap<K2, V2> that, BiFunction<Traversable<V>, Traversable<V2>, Traversable<V>> collisionResolution) AbstractMultimap.merge(Multimap<K2, V2> that, BiFunction<Traversable<V>, Traversable<V2>, Traversable<V>> collisionResolution) Multimap.merge(Multimap<K2, V2> that, BiFunction<Traversable<V>, Traversable<V2>, Traversable<V>> collisionResolution) Creates a new multimap which by merging the entries ofthismultimap andthatmultimap.Multimap.merge(Multimap<K2, V2> that, BiFunction<Traversable<V>, Traversable<V2>, Traversable<V>> collisionResolution) Creates a new multimap which by merging the entries ofthismultimap andthatmultimap.Multimap.merge(Multimap<K2, V2> that, BiFunction<Traversable<V>, Traversable<V2>, Traversable<V>> collisionResolution) Creates a new multimap which by merging the entries ofthismultimap andthatmultimap.<K2 extends K, V2 extends V>
SortedMultimap<K, V> SortedMultimap.merge(Multimap<K2, V2> that, BiFunction<Traversable<V>, Traversable<V2>, Traversable<V>> collisionResolution) <K2 extends K, V2 extends V>
SortedMultimap<K, V> SortedMultimap.merge(Multimap<K2, V2> that, BiFunction<Traversable<V>, Traversable<V2>, Traversable<V>> collisionResolution) <K2 extends K, V2 extends V>
SortedMultimap<K, V> SortedMultimap.merge(Multimap<K2, V2> that, BiFunction<Traversable<V>, Traversable<V2>, Traversable<V>> collisionResolution) (package private) static <K, V, M extends Map<K,V>>
MMaps.scan(M map, Tuple2<K, V> zero, BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation, Function<Iterator<Tuple2<K, V>>, Traversable<Tuple2<K, V>>> finisher) Constructor parameters in io.vavr.collection with type arguments of type TraversableModifierConstructorDescription(package private)AbstractMultimap(Map<K, Traversable<V>> back, Multimap.ContainerType containerType, AbstractMultimap.SerializableSupplier<Traversable<?>> emptyContainer) (package private)AbstractMultimap(Map<K, Traversable<V>> back, Multimap.ContainerType containerType, AbstractMultimap.SerializableSupplier<Traversable<?>> emptyContainer) privateBuilder(Multimap.ContainerType containerType, AbstractMultimap.SerializableSupplier<Traversable<?>> emptyContainer) privateBuilder(Multimap.ContainerType containerType, AbstractMultimap.SerializableSupplier<Traversable<?>> emptyContainer) privateBuilder(Multimap.ContainerType containerType, AbstractMultimap.SerializableSupplier<Traversable<?>> emptyContainer) privateContainerType(BiFunction<Traversable<?>, Object, Traversable<?>> add, BiFunction<Traversable<?>, Object, Traversable<?>> remove, Supplier<Collection<?>> instantiate) privateContainerType(BiFunction<Traversable<?>, Object, Traversable<?>> add, BiFunction<Traversable<?>, Object, Traversable<?>> remove, Supplier<Collection<?>> instantiate) privateHashMultimap(Map<K, Traversable<V>> back, Multimap.ContainerType containerType, AbstractMultimap.SerializableSupplier<Traversable<?>> emptyContainer) privateHashMultimap(Map<K, Traversable<V>> back, Multimap.ContainerType containerType, AbstractMultimap.SerializableSupplier<Traversable<?>> emptyContainer) privateLinkedHashMultimap(Map<K, Traversable<V>> back, Multimap.ContainerType containerType, AbstractMultimap.SerializableSupplier<Traversable<?>> emptyContainer) privateLinkedHashMultimap(Map<K, Traversable<V>> back, Multimap.ContainerType containerType, AbstractMultimap.SerializableSupplier<Traversable<?>> emptyContainer) privateTreeMultimap(Map<K, Traversable<V>> back, Multimap.ContainerType containerType, AbstractMultimap.SerializableSupplier<Traversable<?>> emptyContainer) privateTreeMultimap(Map<K, Traversable<V>> back, Multimap.ContainerType containerType, AbstractMultimap.SerializableSupplier<Traversable<?>> emptyContainer)