FicSetExtension<T> extension
See also: FicListExtension
- on
-
- Set<
T>
- Set<
Properties
-
lock
→ ISet<
T> -
Locks the set, returning an immutable set (
ISet
).no setter -
lockUnsafe
→ ISet<
T> -
Locks the set, returning an immutable set (
ISet
).no setter
Methods
-
diffAndIntersect<
G> (Set< G> other, {bool diffThisMinusOther = true, bool diffOtherMinusThis = true, bool intersectThisWithOther = true, bool intersectOtherWithThis = true}) → DiffAndIntersectResult<T, G> -
Given this set and
other
, returns: -
removeNulls(
) → void -
Removes all
null
s from the Set. -
toggle(
T item) → bool -
If the item doesn't exist in the set, add it and return
true
. Otherwise, if the item already exists in the set, remove it and returnfalse
.