Uses of Interface
com.jongsoft.lang.collection.Set
-
Packages that use Set Package Description com.jongsoft.lang This package contains all interfaces used through out the functional library.com.jongsoft.lang.collection A purely functional based set of collection implementations based upon the Collection. -
-
Uses of Set in com.jongsoft.lang
Methods in com.jongsoft.lang that return Set Modifier and Type Method Description static <T> Set<T>
Collections. Set(java.lang.Iterable<? extends T> iterable)
Create a new set containing all the elements of theiterable
.static <T> Set<T>
Collections. Set(java.util.Comparator<T> comparator, java.lang.Iterable<? extends T> iterable)
Creates a new Sorted Set with the providedcomparator
and all elements that are in the providediterable
.static <T> Set<T>
Collections. Set(java.util.Comparator<T> comparator, T... elements)
Create a new sorted set with all theelements
in it sorted by the providedcomparator
.static <T> Set<T>
Collections. Set(T... elements)
Create a new set containing all unique elements.static <T> Set<T>
Collections. SortedSet()
-
Uses of Set in com.jongsoft.lang.collection
Methods in com.jongsoft.lang.collection that return Set Modifier and Type Method Description Set<T>
Set. append(T value)
default Set<T>
Set. complement(java.lang.Iterable<T> iterable)
Creates a new set that contains elements that are only inthis
, but not contained withiniterable
.Set<T>
Set. complement(java.lang.Iterable<T>... iterables)
Creates a new set that contains elements that are only inthis
, but not contained within any of theiterables
.Set<T>
Sequence. distinct()
Generate a new set containing only unique elements from this collection.Set<T>
Sequence. distinctBy(java.util.Comparator<T> comparator)
Set<T>
Set. distinctBy(java.util.Comparator<T> comparator)
Set<T>
Set. filter(java.util.function.Predicate<T> predicate)
default Set<T>
Set. intersect(java.lang.Iterable<T> iterable)
Creates a set that contains only the elements that are in boththis
and the providediterable
.Set<T>
Set. intersect(java.lang.Iterable<T>... iterables)
Creates a set that contains only the elements that are in all collections andthis
.<U> Set<U>
Set. map(java.util.function.Function<T,U> mapper)
Set<T>
Set. orElse(java.lang.Iterable<? extends T> other)
Set<T>
Set. orElse(java.util.function.Supplier<? extends java.lang.Iterable<? extends T>> supplier)
default Set<T>
Set. reject(java.util.function.Predicate<T> predicate)
Set<T>
Set. remove(int index)
Set<T>
Set. tail()
Set<T>
Set. union(java.lang.Iterable<T> iterable)
Methods in com.jongsoft.lang.collection that return types with arguments of type Set Modifier and Type Method Description static <T> java.util.stream.Collector<T,java.util.ArrayList<T>,Set<T>>
Collectors. toSet()
static <T> java.util.stream.Collector<T,java.util.ArrayList<T>,Set<T>>
Collectors. toSorted(java.util.Comparator<T> comparator)
-