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 extensionthiswith the same value forclassifier. -
isDisjointWith(
Set< Object> other) → bool -
Available on Set<
ReturnsE> , provided by the SetBasics extensiontrueifthisandotherhave no elements in common. -
isEqualTo(
Set< Object> other) → bool -
Available on Set<
ReturnsE> , provided by the SetBasics extensiontrueifthisandothercontain exactly the same elements. -
isIntersectingWith(
Set< Object> other) → bool -
Available on Set<
ReturnsE> , provided by the SetBasics extensiontrueifthisandotherhave at least one element in common. -
isStrictSubsetOf(
Set< Object> other) → bool -
Available on Set<
ReturnsE> , provided by the SetBasics extensiontrueif every element ofthisis contained inotherand at least one element ofotheris not contained inthis. -
isStrictSupersetOf(
Set< Object> other) → bool -
Available on Set<
ReturnsE> , provided by the SetBasics extensiontrueif every element ofotheris contained inthisand at least one element ofthisis not contained inother. -
isSubsetOf(
Set< Object> other) → bool -
Available on Set<
ReturnsE> , provided by the SetBasics extensiontrueif every element ofthisis contained inother. -
isSupersetOf(
Set< Object> other) → bool -
Available on Set<
ReturnsE> , provided by the SetBasics extensiontrueif every element ofotheris contained inthis. -
takeRandom(
{int? seed}) → E? -
Available on Set<
Removes a random element ofE> , provided by the SetBasics extensionthisand returns it.