CeylonMutableSet(JSet<Element> set)
Inherited Attributes
Attributes inherited from: CeylonCollection<Element>
Attributes inherited from: CeylonSet<Element>
Attributes inherited from: Object
Attributes inherited from: Collection<Element>
Attributes inherited from: Iterable<Element,Absent>
Attributes inherited from: Set<Element>
addSource Codeshared actual 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.

clearSource Codeshared actual void clear()

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

cloneSource Codeshared actual MutableSet<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 CeylonSet.clone ultimately refines Collection.clone
removeSource Codeshared actual Boolean remove(Element element)

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

Inherited Methods
Methods inherited from: CeylonCollection<Element>
Methods inherited from: CeylonSet<Element>
Methods inherited from: Object
Methods inherited from: Category<Element>
Methods inherited from: Collection<Element>
Methods inherited from: Iterable<Element,Absent>
Methods inherited from: MutableSet<Element>
Methods inherited from: Set<Element>
Methods inherited from: SetMutator<Element>