Uses of Interface
io.vavr.collection.Set
Packages that use Set
Package
Description
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples.Purely functional collections based on Traversable.
-
Uses of Set in io.vavr
Modifier and TypeMethodDescriptionstatic <T> Set<T> API.LinkedSet()Alias forLinkedHashSet.empty()static <T> Set<T> API.LinkedSet(T element) Alias forLinkedHashSet.of(Object)static <T> Set<T> API.LinkedSet(T... elements) Alias forLinkedHashSet.of(Object...)static <T> Set<T> API.Set()Alias forHashSet.empty()static <T> Set<T> API.Set(T element) Alias forHashSet.of(Object)static <T> Set<T> API.Set(T... elements) Alias forHashSet.of(Object...)Value.toLinkedSet()Converts this to aSet.Value.toSet()Converts this to aSet. -
Uses of Set in io.vavr.collection
Subinterfaces of Set in io.vavr.collectionModifier and TypeInterfaceDescriptioninterfaceBitSet<T>An immutableBitSetimplementation.interfaceSortedSet<T>An immutableSortedSetinterface.Classes in io.vavr.collection that implement SetModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classfinal classHashSet<T>An immutableHashSetimplementation.final classAn immutableHashSetimplementation that has predictable (insertion-order) iteration.final classTreeSet<T>SortedSet implementation, backed by a Red/Black Tree.Fields in io.vavr.collection declared as SetMethods in io.vavr.collection that return SetModifier and TypeMethodDescriptionAdd the given element to this set, if it is not already contained.Adds all of the given elements to this set, if not already contained.<R> Set<R> Set.collect(PartialFunction<? super T, ? extends R> partialFunction) Calculates the difference between this set and another set.Set.distinct()Set.distinctBy(Comparator<? super T> comparator) Set.distinctBy(Function<? super T, ? extends U> keyExtractor) Set.drop(int n) Set.dropRight(int n) <U> Set<U> Set.init()Computes the intersection between this set and another set.AbstractMultimap.keySet()HashMap.keySet()LinkedHashMap.keySet()Map.keySet()Returns the keys contained in this map.Multimap.keySet()Returns the keys contained in this multimap.<U> Set<U> static <T> Set<T> Narrows a widenedSet<? extends T>toSet<T>by performing a type-safe cast.Removes a specific element from this set, if present.Removes all of the given elements from this set, if present.Set.replaceAll(T currentElement, T newElement) default <U> Set<U> BitSet.scanLeft(U zero, BiFunction<? super U, ? super T, ? extends U> operation) <U> Set<U> Set.scanLeft(U zero, BiFunction<? super U, ? super T, ? extends U> operation) <U> Set<U> SortedSet.scanLeft(U zero, BiFunction<? super U, ? super T, ? extends U> operation) <U> Set<U> TreeSet.scanLeft(U zero, BiFunction<? super U, ? super T, ? extends U> operation) default <U> Set<U> BitSet.scanRight(U zero, BiFunction<? super T, ? super U, ? extends U> operation) <U> Set<U> Set.scanRight(U zero, BiFunction<? super T, ? super U, ? extends U> operation) <U> Set<U> SortedSet.scanRight(U zero, BiFunction<? super T, ? super U, ? extends U> operation) <U> Set<U> TreeSet.scanRight(U zero, BiFunction<? super T, ? super U, ? extends U> operation) Set.tail()Set.take(int n) Set.takeRight(int n) Adds all of the elements ofthatset to this set, if not already present.<U,R> Set <R> Set.zipWith(Iterable<? extends U> that, BiFunction<? super T, ? super U, ? extends R> mapper) Set.zipWithIndex()<U> Set<U> Set.zipWithIndex(BiFunction<? super T, ? super Integer, ? extends U> mapper) Methods in io.vavr.collection that return types with arguments of type SetModifier and TypeMethodDescriptionSet.grouped(int size) Set.initOption()Set.sliding(int size) Set.sliding(int size, int step) Set.tailOption()Methods in io.vavr.collection with parameters of type SetModifier and TypeMethodDescriptionCalculates the difference between this set and another set.(package private) static <V> booleanComputes the intersection between this set and another set.static <T> Set<T> Narrows a widenedSet<? extends T>toSet<T>by performing a type-safe cast.Adds all of the elements ofelementsto this set, replacing existing ones if they already present.Adds all of the elements ofthatset to this set, if not already present.Constructors in io.vavr.collection with parameters of type Set