SetBasics<E> extension
Utility extension methods for the native Set class.
- on
-
- Set<
E>
- Set<
Methods
-
classify<
K> (K classifier(E element)) → Map< K, Set< E> > -
Available on Set<
Returns a map grouping all elements ofE> , provided by the SetBasics extensionthis
with the same value forclassifier
. -
isDisjointWith(
Set< Object> other) → bool -
Available on Set<
ReturnsE> , provided by the SetBasics extensiontrue
ifthis
andother
have no elements in common. -
isEqualTo(
Set< Object> other) → bool -
Available on Set<
ReturnsE> , provided by the SetBasics extensiontrue
ifthis
andother
contain exactly the same elements. -
isIntersectingWith(
Set< Object> other) → bool -
Available on Set<
ReturnsE> , provided by the SetBasics extensiontrue
ifthis
andother
have at least one element in common. -
isStrictSubsetOf(
Set< Object> other) → bool -
Available on Set<
ReturnsE> , provided by the SetBasics extensiontrue
if every element ofthis
is contained inother
and at least one element ofother
is not contained inthis
. -
isStrictSupersetOf(
Set< Object> other) → bool -
Available on Set<
ReturnsE> , provided by the SetBasics extensiontrue
if every element ofother
is contained inthis
and at least one element ofthis
is not contained inother
. -
isSubsetOf(
Set< Object> other) → bool -
Available on Set<
ReturnsE> , provided by the SetBasics extensiontrue
if every element ofthis
is contained inother
. -
isSupersetOf(
Set< Object> other) → bool -
Available on Set<
ReturnsE> , provided by the SetBasics extensiontrue
if every element ofother
is contained inthis
. -
takeRandom(
{int? seed}) → E? -
Available on Set<
Removes a random element ofE> , provided by the SetBasics extensionthis
and returns it.