Uses of Interface
io.vavr.collection.Traversable
Packages that use Traversable
-
Uses of Traversable in io.vavr.collection
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 TypeClassDescriptionfinal classArray<T>Array is a Traversable wrapper forObject[]containing elements of typeT.final classThe CharSeq (read: character sequence) collection essentially is a rich String wrapper having all operations we know from the functional Vavr collections.final classHashMap<K,V> An immutableHashMapimplementation based on a Hash array mapped trie (HAMT).final classHashMultimap<K,V> final classHashSet<T>An immutableHashSetimplementation.final 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 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.Fields in io.vavr.collection with type parameters of type TraversableModifier and TypeFieldDescriptionprotected final Map<K, Traversable<V>> AbstractMultimap.backprotected final Map<K, Traversable<V>> AbstractMultimap.backprotected final Map<K, Traversable<V>> AbstractMultimap.backprotected final io.vavr.collection.AbstractMultimap.SerializableSupplier<Traversable<?>> AbstractMultimap.emptyContainerprotected final io.vavr.collection.AbstractMultimap.SerializableSupplier<Traversable<?>> AbstractMultimap.emptyContainerprotected final io.vavr.collection.AbstractMultimap.SerializableSupplier<Traversable<?>> AbstractMultimap.emptyContainerMethods in io.vavr.collection that return TraversableModifier and TypeMethodDescriptiondefault 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.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 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.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.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>> 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 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 callingsliding(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 TypeMethodDescriptionMultimap.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 mapstatic <T> Traversable<T> Traversable.narrow(Traversable<? extends T> traversable) Narrows a widenedTraversable<? extends T>toTraversable<T>by performing a type-safe cast.Method parameters in io.vavr.collection with type arguments of type TraversableModifier and TypeMethodDescriptionprotected <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) 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)