Scala Library
|
|
trait
ObservableSet[A, This <: ObservableSet[A, This]]
extends
Set[A] with
Publisher[Message[A] with
Undoable, This]Set
class into which this abstract
class is mixed in. Class ObservableSet
publishes
events of the type Message
.Method Summary | |
def
|
+=
(elem : A) : This
Adds a new element to the set.
|
def
|
-=
(elem : A) : This
Removes a single element from a set.
|
def
|
clear
: Unit
Removes all elements from the set. After this operation is completed,
the set will be empty.
|
Methods inherited from Publisher | |
subscribe, subscribe, suspendSubscription, activateSubscription, removeSubscription, removeSubscriptions, publish |
Methods inherited from Set | |
companion |
Methods inherited from Unhashable | |
hashCode, identityHashCode |
Methods inherited from MutableSetTemplate | |
newBuilder, add, remove, update, retain, clone, result, +, +, ++, ++, -, -, --, --, << |
Methods inherited from Shrinkable | |
-=, --=, --= |
Methods inherited from Builder | |
sizeHint, mapResult |
Methods inherited from Growable | |
+=, ++=, ++= |
Methods inherited from SetTemplate | |
contains (abstract), isEmpty, apply, intersect, &, **, union, |, diff, &~, subsetOf, equals, stringPrefix, toString |
Methods inherited from SetClass | |
empty |
Methods inherited from Function1 | |
compose, andThen |
Methods inherited from IterableTemplate | |
iterator (abstract), elements, foreach, foldRight, reduceRight, toIterable, head, takeRight, dropRight, sameElements, toStream, view, view, first, firstOption, toSeq, projection |
Methods inherited from TraversableClass | |
genericBuilder, unzip, flatten, transpose |
Methods inherited from TraversableTemplate | |
thisCollection, nonEmpty, size, hasDefiniteSize, ++, ++, map, flatMap, filter, filterMap, filterNot, remove, partition, groupBy, forall, exists, count, find, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, headOption, tail, last, lastOption, init, take, drop, slice, takeWhile, dropWhile, span, splitAt, copyToBuffer, copyToArray, copyToArray, toArray, toList, toSequence, toSet, mkString, mkString, mkString, addString, addString, addString |
Methods inherited from AnyRef | |
getClass, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
elem -
the element to be addedelem -
The element to be removed.
def
clear : Unit
Scala Library
|
|