ObjSetExt<E> extension

on

Properties

iterator Iterator<E>
An iterator that iterates over the elements of this set.
no setter

Methods

add(E valueToAdd) bool
Adds value to the set.
addAll(Iterable<E> elements) → void
Adds all elements to this set.
cast<R>() Set<R>
Provides a view of this set as a set of R instances.
clear() → void
Removes all elements from the set.
contains(Object? valueToEvaluate) bool
Whether value is in the set.
containsAll(Iterable<Object?> other) bool
Whether this set contains all the elements of other.
difference(Set<Object?> other) Set<E>
Creates a new set with the elements of this that are not in other.
intersection(Set<Object?> other) Set<E>
Creates a new set which is the intersection between this set and other.
lookup(Object? object) → E?
If an object equal to object is in the set, return it.
remove(Object? valueToRemove) bool
Removes value from the set.
removeAll(Iterable<Object?> elements) → void
Removes each element of elements from this set.
removeWhere(bool test(E element)) → void
Removes all elements of this set that satisfy test.
retainAll(Iterable<Object?> elements) → void
Removes all elements of this set that are not elements in elements.
retainWhere(bool test(E element)) → void
Removes all elements of this set that fail to satisfy test.
toSet() Set<E>
Creates a Set with the same elements and behavior as this Set.
union(Set<E> other) Set<E>
Creates a new set which contains all the elements of this set and other.