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 @NonNull ... 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 @NonNull ... 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 TypeMethodDescriptionReturns a new set containing all elements of this set plus the given element, if it was not already present.Returns a new set containing all elements of this set plus the given elements, excluding duplicates.<R> Set<R> Set.collect(@NonNull PartialFunction<? super T, ? extends R> partialFunction) Returns a new set containing all elements of this set except those in the given set.Set.distinct()Set.distinctBy(@NonNull Comparator<? super T> comparator) Set.distinctBy(@NonNull Function<? super T, ? extends U> keyExtractor) Set.drop(int n) Set.dropRight(int n) <U> Set<U> Set.init()Returns a new set containing only the elements present in both this set and the given 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> default <U> Set<U> Set.mapTo(U value) Set.mapToVoid()static <T> Set<T> Narrows a widenedSet<? extends T>toSet<T>by performing a type-safe cast.Returns a new set with the given element removed, if it was present.Returns a new set with all given elements removed, if present.Set.replaceAll(T currentElement, T newElement) default <U> Set<U> BitSet.scanLeft(U zero, @NonNull BiFunction<? super U, ? super T, ? extends U> operation) <U> Set<U> Set.scanLeft(U zero, @NonNull BiFunction<? super U, ? super T, ? extends U> operation) <U> Set<U> SortedSet.scanLeft(U zero, @NonNull BiFunction<? super U, ? super T, ? extends U> operation) <U> Set<U> TreeSet.scanLeft(U zero, @NonNull BiFunction<? super U, ? super T, ? extends U> operation) default <U> Set<U> BitSet.scanRight(U zero, @NonNull BiFunction<? super T, ? super U, ? extends U> operation) <U> Set<U> Set.scanRight(U zero, @NonNull BiFunction<? super T, ? super U, ? extends U> operation) <U> Set<U> SortedSet.scanRight(U zero, @NonNull BiFunction<? super T, ? super U, ? extends U> operation) <U> Set<U> TreeSet.scanRight(U zero, @NonNull BiFunction<? super T, ? super U, ? extends U> operation) Set.tail()Set.take(int n) Set.takeRight(int n) Returns a new set containing all distinct elements from this set and the given set.<U,R> Set <R> Set.zipWith(@NonNull Iterable<? extends U> that, BiFunction<? super T, ? super U, ? extends R> mapper) Set.zipWithIndex()<U> Set<U> Set.zipWithIndex(@NonNull 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 TypeMethodDescriptionReturns a new set containing all elements of this set except those in the given set.(package private) static <V> booleanReturns a new set containing only the elements present in both this set and the given 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.Returns a new set containing all distinct elements from this set and the given set.Constructors in io.vavr.collection with parameters of type Set