Uses of Interface
org.javimmutable.collections.ISet
Package
Description
-
Uses of ISet in org.javimmutable.collections
Modifier and TypeInterfaceDescriptioninterface
IMultiset<T>
Keeps a set of distinct values, as well as the count corresponding to each value.Modifier and TypeMethodDescriptionISetBuilder.build()
Builds and returns a collection containing all of the added values.Removes the value from the Set.ISet.deleteAll()
Removes all values of other from the Set.Removes all values of other from the Set.Return the set associated with key, or an empty set if no list is associated.static <T> ISet
<T> ISets.hashed()
Constructs an unsorted set.static <T> ISet
<T> Constructs an unsorted set containing the values from source.static <T> ISet
<T> Constructs an unsorted set containing the values from source.static <T> ISet
<T> ISets.hashed
(T... source) Constructs an unsorted set containing the values from source.Adds the single value to the Set.Adds all of the elements of the specified collection to the set.Adds all of the elements of the specified collection to the set.ISet.intersection
(Iterable<? extends T> other) Removes all values from the Set that are not contained in the other collection.ISet.intersection
(Iterator<? extends T> values) Removes all values from the Set that are not contained in the other collection.ISet.intersection
(Set<? extends T> other) Removes all values from the Set that are not contained in the other collection.ISet.intersection
(ISet<? extends T> other) Removes all values from the Set that are not contained in the other collection.static <T> ISet
<T> ISets.ordered()
Constructs an empty set that sorts values based on the order they were originally added to the set.static <T> ISet
<T> Constructs a set containing all of the values in source that sorts values based on the order they were originally added to the set.static <T> ISet
<T> Constructs a set containing all of the values in source that sorts values based on the order they were originally added to the set.static <T> ISet
<T> ISets.ordered
(T... source) Constructs a set containing all of the values in source that sorts values based on the order they were originally added to the set.Returns a set of the same type as this containing all those elements for which predicate returns false.Returns a set of the same type as this containing only those elements for which predicate returns true.static <T extends Comparable<T>>
ISet<T> ISets.sorted()
Constructs an empty set that sorts values in their natural sort order (using ComparableComparator).static <T extends Comparable<T>>
ISet<T> Constructs a set containing all of the values in source that sorts values in their natural sort order (using ComparableComparator).static <T> ISet
<T> ISets.sorted
(Comparator<T> comparator) Constructs an empty set that sorts values using comparator.static <T> ISet
<T> ISets.sorted
(Comparator<T> comparator, Iterable<? extends T> source) Constructs a set containing all of the values in source that sorts values using comparator.static <T> ISet
<T> ISets.sorted
(Comparator<T> comparator, Iterator<? extends T> source) Constructs a set containing all of the values in source that sorts values using comparator.static <T> ISet
<T> ISets.sorted
(Comparator<T> comparator, T... source) Constructs a set containing all of the values in source that sorts values using comparator.static <T extends Comparable<T>>
ISet<T> Constructs a set containing all of the values in source that sorts values in their natural sort order (using ComparableComparator).static <T extends Comparable<T>>
ISet<T> ISets.sorted
(T... source) Constructs a set containing all of the values in source that sorts values in their natural sort order (using ComparableComparator).Adds all values from other to the Set.Adds all values from other to the Set.Modifier and TypeMethodDescriptionIStreamable
<IMapEntry<K, ISet<V>>> ISetMap.entries()
Creates an IStreamable to access all of the Map's entries.ISet.setCollector()
Returns a Collector that creates a set of the same type as this containing all of the collected values inserted over whatever starting values this already contained.static <T> java.util.stream.Collector
<T, ?, ISet<T>> ICollectors.toOrderedSet()
Collects into a set that sorts values based on the order they were originally added to the set.static <T> java.util.stream.Collector
<T, ?, ISet<T>> ICollectors.toSet()
Collects into an unsorted set to the set.static <T extends Comparable<T>>
java.util.stream.Collector<T, ?, ISet<T>> ICollectors.toSortedSet()
Collects values into a sortedISet
using natural sort order of elements.static <T> java.util.stream.Collector
<T, ?, ISet<T>> ICollectors.toSortedSet
(Comparator<T> comparator) Collects values into a sortedISet
using specified Comparator.Modifier and TypeMethodDescriptionSets the set associated with a specific key.IMultiset.intersection
(ISet<? extends T> other) Creates a new multiset with the occurrences that are in both other and this.ISet.intersection
(ISet<? extends T> other) Removes all values from the Set that are not contained in the other collection.ISetMap.intersection
(K key, ISet<? extends V> other) Removes all values from the Set at key that are not contained in the other collection.static <K,
V> ISetMap <K, V> Creates a set map using the provided templates for map and set.Modifier and TypeMethodDescriptiondefault void
Processes every key/set pair in this map using the provided function.default <E extends Exception>
voidISetMap.forEachThrows
(Proc2Throws<K, ISet<V>, E> proc) Processes every key/set pair in this map using the provided function.Add value to the Set for the specified key.static <K,
V> ISetMap <K, V> Creates a set map using the provided templates for map and set.Apply the specified transform function to the Set assigned to the specified key and assign the result to the key in this map.Apply the specified transform function to the Set assigned to the specified key and assign the result to the key in this map.Apply the specified transform function to the Set assigned to the specified key and assign the result to the key in this map.Apply the specified transform function to the Set assigned to the specified key and assign the result to the key in this map. -
Uses of ISet in org.javimmutable.collections.common
Modifier and TypeMethodDescriptionGenericSetBuilder.build()
Implemented by derived classes to create a new instance of the appropriate class.AbstractSet.intersection
(Iterable<? extends T> other) AbstractSet.intersection
(ISet<? extends T> other) AbstractSetUsingMap.intersection
(Iterator<? extends T> values) AbstractSetUsingMap.intersection
(Set<? extends T> other) Modifier and TypeMethodDescriptionAbstractMultiset.intersection
(ISet<? extends T> other) AbstractSet.intersection
(ISet<? extends T> other) static <T> SetAdaptor
<T> ModifierConstructorDescriptionGenericSetBuilder
(IMapBuilder<T, Boolean> mapBuilder, Func1<IMap<T, Boolean>, ISet<T>> setFactory) -
Uses of ISet in org.javimmutable.collections.hash
Modifier and TypeMethodDescriptionEmptyHashSet.deleteAll()
HashSet.deleteAll()
EmptyHashSet.intersection
(Iterable<? extends T> other) EmptyHashSet.intersection
(Iterator<? extends T> values) EmptyHashSet.intersection
(Set<? extends T> other) EmptyHashSet.intersection
(ISet<? extends T> other) HashSet.intersection
(Iterator<? extends T> values) HashSet.intersection
(Set<? extends T> otherSet) static <T> ISet
<T> HashSet.of()
-
Uses of ISet in org.javimmutable.collections.inorder
Modifier and TypeClassDescriptionclass
IMultiset
implementation built on top of an ordered map.class
OrderedSet<T>
ISet
implementation built on top of an ordered set. -
Uses of ISet in org.javimmutable.collections.serialization
-
Uses of ISet in org.javimmutable.collections.setmap
Modifier and TypeFieldDescriptionprotected final ISet
<V> AbstractSetMap.emptySet
protected final ISet
<V> AbstractSetMap.emptySet
protected final ISet
<V> AbstractSetMap.emptySet
protected final ISet
<V> AbstractSetMap.emptySet
Modifier and TypeFieldDescriptionAbstractSetMap.contents
AbstractSetMap.contents
AbstractSetMap.contents
AbstractSetMap.contents
Modifier and TypeMethodDescriptionstatic <K,
V> ISetMap <K, V> Creates a new emptyISetMap
object using the specified template map and set implementations. -
Uses of ISet in org.javimmutable.collections.tree