Satisfied Interfaces: Category, Cloneable<Set<Element>>, Collection<Element>, Iterable<Element,Null>
Direct Known Satisfying Classes: LazySet<Element>, emptySet
All Known Subtypes Hierarchy

- Set
  - LazySet
  - emptySet

A collection of unique elements.

A `Set` is a `Collection` of its elements.

Sets may be the subject of the binary union, intersection, and complement operators `|`, `&`, and `~`.

Attributes
hash | Source Code shared actual default Integer hash The hash value of the value, which allows the value to be an element of a hash-based set or key of a hash-based map. Implementations must respect the constraint that if `x==y` then `x.hash==y.hash`. Refined declaration: hash

Inherited Attributes
Attributes inherited from: Object string
Attributes inherited from: Cloneable<Clone> clone
Attributes inherited from: Collection<Element> string
Attributes inherited from: Iterable<Element,Absent> coalesced, cycled, empty, first, indexed, last, rest, sequence, size, string

Methods
complement | Source Code shared formal Set<Element> complement<Other>(Set<Other> set) given Other satisfies Object Returns a new `Set` containing all the elements in this `Set` that are not contained in the given `Set`.
equals | Source Code shared actual default Boolean equals(Object that) Two `Set`s are considered equal if they have the same size and if every element of the first set is also an element of the second set, as determined by `contains()`. Refined declaration: equals
exclusiveUnion | Source Code shared formal Set<Element|Other> exclusiveUnion<Other>(Set<Other> set) given Other satisfies Object Returns a new `Set` containing only the elements contained in either this `Set` or the given `Set`, but no element contained in both sets.
intersection | Source Code shared formal Set<Element&Other> intersection<Other>(Set<Other> set) given Other satisfies Object Returns a new `Set` containing only the elements that are present in both this `Set` and the given `Set`.
subset | Source Code shared default Boolean subset(Set<Object> set) Determines if this `Set` is a subset of the given `Set`, that is, if the given set contains all of the elements in this set.
superset | Source Code shared default Boolean superset(Set<Object> set) Determines if this `Set` is a superset of the specified Set, that is, if this `Set` contains all of the elements in the specified `Set`.
union | Source Code shared formal Set<Element|Other> union<Other>(Set<Other> set) given Other satisfies Object Returns a new `Set` containing all the elements of this `Set` and all the elements of the given `Set`.

Inherited Methods
Methods inherited from: Category contains, containsAny, containsEvery
Methods inherited from: Iterable<Element,Absent> any, by, chain, collect, count, cycle, defaultNullElements, every, filter, find, findLast, fold, following, iterator, longerThan, map, repeat, select, shorterThan, skipping, skippingWhile, sort, taking, takingWhile