Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: Collection<Element>
Attributes inherited from: Iterable<Element,Absent>
Attributes inherited from: Set<Element>
Methods
addSource Codeshared formal Boolean add(Element element)

Add the given element to this set, returning true if the element was not already a member of this set, or false otherwise.

addAllSource Codeshared default Boolean addAll({Element*} elements)

Add the given elements to this set, returning true if any of the given elements was not already a member of this set, or false otherwise.

clearSource Codeshared formal void clear()

Remove every element from this set, leaving an empty set with no elements.

cloneSource Codeshared formal SetMutator<Element> clone()

A shallow copy of this collection, that is, a collection with identical elements which does not change if this collection changes. If this collection is immutable, it is acceptable to return a reference to this collection. If this collection is mutable, a newly instantiated collection must be returned.

Refines Set.clone ultimately refines Collection.clone
removeSource Codeshared formal Boolean remove(Element element)

Remove an element from this set, returning true if the element was previously a member of the set.

removeAllSource Codeshared default Boolean removeAll({Element*} elements)

Remove the given elements from this set, returning true if at least one element was previously a member of the set.

Inherited Methods
Methods inherited from: Object
Methods inherited from: Category<Element>
Methods inherited from: Collection<Element>
Methods inherited from: Iterable<Element,Absent>
Methods inherited from: Set<Element>