ObservableSet

trait ObservableSet[T] extends AbstractSet[T] with Observable with SFXDelegate[ObservableSet[T]]

Wrapper class to JavaFX's `ObservableSet` .

Wrapper class to JavaFX's `ObservableSet` .

Type Params
T

Type of this Set

Companion
object
trait SFXDelegate[ObservableSet[T]]
class AbstractSet[T]
trait Set[T]
trait SetOps[T, [A] =>> Set[A], Set[T]]
trait Shrinkable[T]
trait Builder[T, Set[T]]
trait Growable[T]
trait Clearable
trait Cloneable[Set[T]]
trait Cloneable
trait Iterable[T]
class AbstractSet[T]
trait Set[T]
trait Equals
trait SetOps[T, [A] =>> Set[A], Set[T]]
trait T => Boolean
class AbstractIterable[T]
trait Iterable[T]
trait IterableFactoryDefaults[T, [A] =>> Set[A]]
trait IterableOps[T, [A] =>> Set[A], Set[T]]
trait IterableOnceOps[T, [A] =>> Set[A], Set[T]]
trait IterableOnce[T]
class Object
trait Matchable
class Any

Value members

Concrete methods

def addOne(elem: T): ObservableSet[T]

Adds a single element to the set.

Adds a single element to the set.

Value Params
elem

the element to be added.

Returns

The Set itself

override def clear(): Unit

Removes all elements from the Set. After this operation has completed, the Set will be empty.

Removes all elements from the Set. After this operation has completed, the Set will be empty.

Definition Classes
Builder -> Clearable
def contains(elem: T): Boolean

Tests if some element is contained in this Set.

Tests if some element is contained in this Set.

Value Params
elem

the element to test for membership.

Returns

true if elem is contained in this Set, false otherwise.

override def empty: Set[T]

Generates a empty ObservableSet.

Generates a empty ObservableSet.

Returns

A empty scalafx.collections.ObservableHashSet

Definition Classes
IterableFactoryDefaults -> IterableOps
def iterator: Iterator[T]

Creates a new iterator over elements of this set

Creates a new iterator over elements of this set

def onChange[J >: T](op: (ObservableSet[T], Change[J]) => Unit): Subscription

Add a listener function to Set's changes. This function '''will handle''' this map's modifications data.

Add a listener function to Set's changes. This function '''will handle''' this map's modifications data.

Value Params
op

Function that will handle this ObservableSet's modifications data to be activated when some change was made.

def onChange(op: => Unit): Subscription

Add a listener function to Set's changes. This function '''will not handle''' this Set's modifications data.

Add a listener function to Set's changes. This function '''will not handle''' this Set's modifications data.

Value Params
op

No-argument function to be activated when some change in this ObservableSet was made.

override def result(): ObservableSet[T]

The result when this set is used as a builder

The result when this set is used as a builder

Definition Classes
SetOps -> Builder
override def size: Int
Returns

This Set's size.

Definition Classes
IterableOnceOps
def subtractOne(elem: T): ObservableSet[T]

Removes a single element from this mutable set.

Removes a single element from this mutable set.

Value Params
elem

the element to be removed.

Returns

The Set itself

Inherited methods

@inline
final def &(that: Set[T]): Set[T]
Inherited from
SetOps
@inline
final def &~(that: Set[T]): Set[T]
Inherited from
SetOps
@inline
final def ++[B >: T](suffix: IterableOnce[B]): Set[B]
Inherited from
IterableOps
@inline
final def ++(that: IterableOnce[T]): Set[T]
Inherited from
SetOps
@inline
final def ++=(xs: IterableOnce[T]): ObservableSet[T]
Inherited from
Growable
@inline
final def +=(elem: T): ObservableSet[T]
Inherited from
Growable
@inline
final def --=(xs: IterableOnce[T]): ObservableSet[T]
Inherited from
Shrinkable
@inline
final def -=(elem: T): ObservableSet[T]
Inherited from
Shrinkable
Inherited from
Cloneable
def add(elem: T): Boolean
Inherited from
SetOps
def addAll(xs: IterableOnce[T]): ObservableSet[T]
Inherited from
Growable
@inline
final def addString(b: StringBuilder): StringBuilder
Inherited from
IterableOnceOps
@inline
final def addString(b: StringBuilder, sep: String): StringBuilder
Inherited from
IterableOnceOps
def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
Inherited from
IterableOnceOps
@unspecialized
def andThen[A](g: Boolean => A): T => A
Inherited from
Function1
@inline
final def apply(elem: T): Boolean
Inherited from
SetOps
def canEqual(that: Any): Boolean
Inherited from
Set
override def clone(): Set[T]
Definition Classes
SetOps -> Cloneable -> Object
Inherited from
SetOps
def collect[B](pf: PartialFunction[T, B]): Set[B]
Inherited from
IterableOps
def collectFirst[B](pf: PartialFunction[T, B]): Option[B]
Inherited from
IterableOnceOps
@unspecialized
def compose[A](g: A => T): A => Boolean
Inherited from
Function1
def concat[B >: T](suffix: IterableOnce[B]): Set[B]
Inherited from
IterableOps
def concat(that: IterableOnce[T]): Set[T]
Inherited from
SetOps
def copyToArray[B >: T](xs: Array[B], start: Int, len: Int): Int
Inherited from
IterableOnceOps
@deprecatedOverriding("This should always forward to the 3-arg version of this method", "2.13.4")
def copyToArray[B >: T](xs: Array[B], start: Int): Int
Inherited from
IterableOnceOps
@deprecatedOverriding("This should always forward to the 3-arg version of this method", "2.13.4")
def copyToArray[B >: T](xs: Array[B]): Int
Inherited from
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: (T, B) => Boolean): Boolean
Inherited from
IterableOnceOps
def count(p: T => Boolean): Int
Inherited from
IterableOnceOps
def delegate: ObservableSet[T]

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Inherited from
SFXDelegate
def diff(that: Set[T]): Set[T]
Inherited from
SetOps
def drop(n: Int): Set[T]
Inherited from
IterableOps
def dropRight(n: Int): Set[T]
Inherited from
IterableOps
def dropWhile(p: T => Boolean): Set[T]
Inherited from
IterableOps
override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value Params
ref

Object to be compared.

Returns

if the other object is equals to this delegate or not.

Definition Classes
Inherited from
SFXDelegate
def exists(p: T => Boolean): Boolean
Inherited from
IterableOnceOps
def filter(pred: T => Boolean): Set[T]
Inherited from
IterableOps
def filterInPlace(p: T => Boolean): ObservableSet[T]
Inherited from
SetOps
def filterNot(pred: T => Boolean): Set[T]
Inherited from
IterableOps
def find(p: T => Boolean): Option[T]
Inherited from
IterableOnceOps
def flatMap[B](f: T => IterableOnce[B]): Set[B]
Inherited from
IterableOps
def flatten[B](asIterable: T => IterableOnce[B]): Set[B]
Inherited from
IterableOps
def fold[A1 >: T](z: A1)(op: (A1, A1) => A1): A1
Inherited from
IterableOnceOps
def foldLeft[B](z: B)(op: (B, T) => B): B
Inherited from
IterableOnceOps
def foldRight[B](z: B)(op: (T, B) => B): B
Inherited from
IterableOnceOps
def forall(p: T => Boolean): Boolean
Inherited from
IterableOnceOps
def foreach[U](f: T => U): Unit
Inherited from
IterableOnceOps
protected def fromSpecific(coll: IterableOnce[T]): Set[T]
Inherited from
IterableFactoryDefaults
def groupBy[K](f: T => K): Map[K, Set[T]]
Inherited from
IterableOps
def groupMap[K, B](key: T => K)(f: T => B): Map[K, Set[B]]
Inherited from
IterableOps
def groupMapReduce[K, B](key: T => K)(f: T => B)(reduce: (B, B) => B): Map[K, B]
Inherited from
IterableOps
def grouped(size: Int): Iterator[Set[T]]
Inherited from
IterableOps
override def hashCode: Int
Returns

The delegate hashcode

Definition Classes
Inherited from
SFXDelegate
def head: T
Inherited from
IterableOps
def headOption: Option[T]
Inherited from
IterableOps
def init: Set[T]
Inherited from
IterableOps
def inits: Iterator[Set[T]]
Inherited from
IterableOps
def intersect(that: Set[T]): Set[T]
Inherited from
SetOps
def isEmpty: Boolean
Inherited from
IterableOnceOps
override def isTraversableAgain: Boolean
Definition Classes
IterableOps -> IterableOnceOps
Inherited from
IterableOps
override def knownSize: Int
Definition Classes
SetOps -> Growable -> IterableOnce
Inherited from
SetOps
def last: T
Inherited from
IterableOps
def lastOption: Option[T]
Inherited from
IterableOps
def lazyZip[B](that: Iterable[B]): LazyZip2[T, B, ObservableSet[T]]
Inherited from
Iterable
def map[B](f: T => B): Set[B]
Inherited from
IterableOps
def mapResult[NewTo](f: Set[T] => NewTo): Builder[T, NewTo]
Inherited from
Builder
def max[B >: T](ord: Ordering[B]): T
Inherited from
IterableOnceOps
def maxBy[B](f: T => B)(cmp: Ordering[B]): T
Inherited from
IterableOnceOps
def maxByOption[B](f: T => B)(cmp: Ordering[B]): Option[T]
Inherited from
IterableOnceOps
def maxOption[B >: T](ord: Ordering[B]): Option[T]
Inherited from
IterableOnceOps
def min[B >: T](ord: Ordering[B]): T
Inherited from
IterableOnceOps
def minBy[B](f: T => B)(cmp: Ordering[B]): T
Inherited from
IterableOnceOps
def minByOption[B](f: T => B)(cmp: Ordering[B]): Option[T]
Inherited from
IterableOnceOps
def minOption[B >: T](ord: Ordering[B]): Option[T]
Inherited from
IterableOnceOps
@inline
final def mkString: String
Inherited from
IterableOnceOps
@inline
final def mkString(sep: String): String
Inherited from
IterableOnceOps
final def mkString(start: String, sep: String, end: String): String
Inherited from
IterableOnceOps
protected def newSpecificBuilder: Builder[T, Set[T]]
Inherited from
IterableFactoryDefaults
@deprecatedOverriding("nonEmpty is defined as !isEmpty; override isEmpty instead", "2.13.0")
def nonEmpty: Boolean
Inherited from
IterableOnceOps
def onInvalidate(op: => Unit): Subscription

Adds a no argument function as a JavaFX `InvalidationListener`. This function has no arguments because it will not handle invalidated values.

Adds a no argument function as a JavaFX `InvalidationListener`. This function has no arguments because it will not handle invalidated values.

Value Params
op

A Function with no arguments. It will be called when value was invalidated.

Returns

A new scalafx.event.subscriptions.Subscription to remove JavaFX InvalidationListener.

Inherited from
Observable

Adds a function as a JavaFX `InvalidationListener`. This function has all arguments from `invalidated` method from InvalidationListener.

Adds a function as a JavaFX `InvalidationListener`. This function has all arguments from `invalidated` method from InvalidationListener.

Value Params
op

Function that receives a ScalaFX Observable. It will be called when value was invalidated.

Returns

A new scalafx.event.subscriptions.Subscription to remove JavaFX InvalidationListener.

Inherited from
Observable
def partition(p: T => Boolean): (Set[T], Set[T])
Inherited from
IterableOps
def partitionMap[A1, A2](f: T => Either[A1, A2]): (Set[A1], Set[A2])
Inherited from
IterableOps
def product[B >: T](num: Numeric[B]): B
Inherited from
IterableOnceOps
def reduce[B >: T](op: (B, B) => B): B
Inherited from
IterableOnceOps
def reduceLeft[B >: T](op: (B, T) => B): B
Inherited from
IterableOnceOps
def reduceLeftOption[B >: T](op: (B, T) => B): Option[B]
Inherited from
IterableOnceOps
def reduceOption[B >: T](op: (B, B) => B): Option[B]
Inherited from
IterableOnceOps
def reduceRight[B >: T](op: (T, B) => B): B
Inherited from
IterableOnceOps
def reduceRightOption[B >: T](op: (T, B) => B): Option[B]
Inherited from
IterableOnceOps
def remove(elem: T): Boolean
Inherited from
SetOps
protected def reversed: Iterable[T]
Inherited from
IterableOnceOps
def scan[B >: T](z: B)(op: (B, B) => B): Set[B]
Inherited from
IterableOps
def scanLeft[B](z: B)(op: (B, T) => B): Set[B]
Inherited from
IterableOps
def scanRight[B](z: B)(op: (T, B) => B): Set[B]
Inherited from
IterableOps
def sizeCompare(that: Iterable[_]): Int
Inherited from
IterableOps
def sizeCompare(otherSize: Int): Int
Inherited from
IterableOps
final def sizeHint(coll: IterableOnce[_], delta: Int): Unit
Inherited from
Builder
def sizeHint(size: Int): Unit
Inherited from
Builder
final def sizeHintBounded(size: Int, boundingColl: Iterable[_]): Unit
Inherited from
Builder
@inline
final def sizeIs: SizeCompareOps
Inherited from
IterableOps
def slice(from: Int, until: Int): Set[T]
Inherited from
IterableOps
def sliding(size: Int, step: Int): Iterator[Set[T]]
Inherited from
IterableOps
def sliding(size: Int): Iterator[Set[T]]
Inherited from
IterableOps
def span(p: T => Boolean): (Set[T], Set[T])
Inherited from
IterableOps
override def splitAt(n: Int): (Set[T], Set[T])
Definition Classes
IterableOps -> IterableOnceOps
Inherited from
IterableOps
def stepper[S <: Stepper[_]](shape: StepperShape[T, S]): S
Inherited from
IterableOnce
def subsetOf(that: Set[T]): Boolean
Inherited from
SetOps
def subsets(): Iterator[Set[T]]
Inherited from
SetOps
def subsets(len: Int): Iterator[Set[T]]
Inherited from
SetOps
def subtractAll(xs: IterableOnce[T]): ObservableSet[T]
Inherited from
Shrinkable
def sum[B >: T](num: Numeric[B]): B
Inherited from
IterableOnceOps
def tail: Set[T]
Inherited from
IterableOps
def tails: Iterator[Set[T]]
Inherited from
IterableOps
def take(n: Int): Set[T]
Inherited from
IterableOps
def takeRight(n: Int): Set[T]
Inherited from
IterableOps
def takeWhile(p: T => Boolean): Set[T]
Inherited from
IterableOps
override def tapEach[U](f: T => U): Set[T]
Definition Classes
IterableOps -> IterableOnceOps
Inherited from
IterableOps
def to[C1](factory: Factory[T, C1]): C1
Inherited from
IterableOnceOps
def toArray[B >: T](ClassTag[B]): Array[B]
Inherited from
IterableOnceOps
@inline
final def toBuffer[B >: T]: Buffer[B]
Inherited from
IterableOnceOps
def toIndexedSeq: IndexedSeq[T]
Inherited from
IterableOnceOps
Inherited from
Iterable
def toList: List[T]
Inherited from
IterableOnceOps
def toMap[K, V](ev: T <:< (K, V)): Map[K, V]
Inherited from
IterableOnceOps
def toSeq: Seq[T]
Inherited from
IterableOnceOps
def toSet[B >: T]: Set[B]
Inherited from
IterableOnceOps
override def toString: String
Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
Inherited from
SFXDelegate
def toVector: Vector[T]
Inherited from
IterableOnceOps
def transpose[B](asIterable: T => Iterable[B]): Set[Set[B]]
Inherited from
IterableOps
@inline
final def union(that: Set[T]): Set[T]
Inherited from
SetOps
def unzip[A1, A2](asPair: T => (A1, A2)): (Set[A1], Set[A2])
Inherited from
IterableOps
def unzip3[A1, A2, A3](asTriple: T => (A1, A2, A3)): (Set[A1], Set[A2], Set[A3])
Inherited from
IterableOps
def update(elem: T, included: Boolean): Unit
Inherited from
SetOps
def view: View[T]
Inherited from
IterableOps
def withFilter(p: T => Boolean): WithFilter[T, [A] =>> Set[A]]
Inherited from
IterableOps
def zip[B](that: IterableOnce[B]): Set[(T, B)]
Inherited from
IterableOps
def zipAll[A1 >: T, B](that: Iterable[B], thisElem: A1, thatElem: B): Set[(A1, B)]
Inherited from
IterableOps
def zipWithIndex: Set[(T, Int)]
Inherited from
IterableOps
@inline
final def |(that: Set[T]): Set[T]
Inherited from
SetOps

Deprecated and Inherited methods

@deprecated("Use ++ with an explicit collection argument instead of + with varargs", "2.13.0")
def +(elem1: T, elem2: T, elems: T*): Set[T]
Deprecated
Inherited from
SetOps
@deprecated("Consider requiring an immutable Set or fall back to Set.union", "2.13.0")
def +(elem: T): Set[T]
Deprecated
Inherited from
SetOps
@deprecated("Use ++ instead of ++: for collections of type Iterable", "2.13.0")
def ++:[B >: T](that: IterableOnce[B]): Set[B]
Deprecated
Inherited from
IterableOps
@inline @deprecated("Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated", "2.13.0")
final def +=(elem1: T, elem2: T, elems: T*): ObservableSet[T]
Deprecated
Inherited from
Growable
@deprecated("Use &- with an explicit collection argument instead of - with varargs", "2.13.0")
def -(elem1: T, elem2: T, elems: T*): Set[T]
Deprecated
Inherited from
SetOps
@deprecated("Consider requiring an immutable Set or fall back to Set.diff", "2.13.0")
def -(elem: T): Set[T]
Deprecated
Inherited from
SetOps
@deprecated("Consider requiring an immutable Set", "2.13.0")
def --(that: IterableOnce[T]): Set[T]
Deprecated
Inherited from
SetOps
@deprecated("Use `--=` aka `subtractAll` instead of varargs `-=`; infix operations with an operand of multiple args will be deprecated", "2.13.3")
def -=(elem1: T, elem2: T, elems: T*): ObservableSet[T]
Deprecated
Inherited from
Shrinkable
@inline @deprecated("Use foldLeft instead of /:", "2.13.0")
final def /:[B](z: B)(op: (B, T) => B): B
Deprecated
Inherited from
IterableOnceOps
@inline @deprecated("Use foldRight instead of :\\", "2.13.0")
final def :\[B](z: B)(op: (T, B) => B): B
Deprecated
Inherited from
IterableOnceOps
@deprecated("`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.", "2.13.0")
def aggregate[B](z: => B)(seqop: (B, T) => B, combop: (B, B) => B): B
Deprecated
Inherited from
IterableOnceOps
@inline @deprecatedOverriding("Use iterableFactory instead", "2.13.0") @deprecated("Use iterableFactory instead", "2.13.0")
def companion: IterableFactory[[A] =>> Set[A]]
Deprecated
Inherited from
IterableOps
@inline @deprecated("Use `dest ++= coll` instead", "2.13.0")
final def copyToBuffer[B >: T](dest: Buffer[B]): Unit
Deprecated
Inherited from
IterableOnceOps
@deprecated("Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)", "2.13.0")
def hasDefiniteSize: Boolean
Deprecated
Inherited from
IterableOnceOps
@deprecated("Use coll instead of repr in a collection implementation, use the collection value itself from the outside", "2.13.0")
final def repr: Set[T]
Deprecated
Inherited from
IterableOps
@inline @deprecated("Use filterInPlace instead", "2.13.0")
final def retain(p: T => Boolean): Unit
Deprecated
Inherited from
SetOps
@deprecated("Iterable.seq always returns the iterable itself", "2.13.0")
Deprecated
Inherited from
Iterable
@inline @deprecated("Use .iterator instead of .toIterator", "2.13.0")
final def toIterator: Iterator[T]
Deprecated
Inherited from
IterableOnceOps
@inline @deprecated("Use .to(LazyList) instead of .toStream", "2.13.0")
final def toStream: Stream[T]
Deprecated
Inherited from
IterableOnceOps
@deprecated("Use toIterable instead", "2.13.0")
final def toTraversable: Iterable[T]
Deprecated
Inherited from
IterableOps
@deprecated("Use .view.slice(from, until) instead of .view(from, until)", "2.13.0")
def view(from: Int, until: Int): View[T]
Deprecated
Inherited from
IterableOps

Concrete fields

override val iterableFactory: IterableFactory[[T] =>> ObservableSet[T]]