ObservableHashSet

scalafx.collections.ObservableHashSet
class ObservableHashSet[T](val delegate: ObservableSet[T]) extends ObservableSet[T]

scalafx.collections.ObservableSet implementation backed for a `HashSet` from Java Collection.

Value parameters

delegate

JavaFX ObservableSet instance to be wrapped by this class. By default it is a HashSet wrapped by observableSet method from FXCollections.

Attributes

Graph
Supertypes
trait ObservableSet[T]
trait Observable
trait SFXDelegate[ObservableSet[T]]
class AbstractSet[T]
trait Set[T]
trait SetOps[T, Set, 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, Set, Set[T]]
trait T => Boolean
class AbstractIterable[T]
trait Iterable[T]
trait IterableOps[T, Set, Set[T]]
trait IterableOnceOps[T, Set, Set[T]]
trait IterableOnce[T]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

final def &(that: Set[T]): C

Attributes

Inherited from:
SetOps
final def &~(that: Set[T]): C

Attributes

Inherited from:
SetOps
final def ++[B >: T](suffix: IterableOnce[B]): CC[B]

Attributes

Inherited from:
IterableOps
final def ++(that: IterableOnce[T]): C

Attributes

Inherited from:
SetOps
final def ++=(xs: IterableOnce[T]): Growable.this.type

Attributes

Inherited from:
Growable
final def +=(elem: T): Growable.this.type

Attributes

Inherited from:
Growable
final def --=(xs: IterableOnce[T]): Shrinkable.this.type

Attributes

Inherited from:
Shrinkable
final def -=(elem: T): Shrinkable.this.type

Attributes

Inherited from:
Shrinkable
def add(elem: T): Boolean

Attributes

Inherited from:
SetOps
def addAll(xs: IterableOnce[T]): Growable.this.type

Attributes

Inherited from:
Growable
def addOne(elem: T): ObservableSet.this.type

Adds a single element to the set.

Adds a single element to the set.

Value parameters

elem

the element to be added.

Attributes

Returns

The Set itself

Inherited from:
ObservableSet

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
def andThen[A](g: Boolean => A): T1 => A

Attributes

Inherited from:
Function1
final def apply(elem: T): Boolean

Attributes

Inherited from:
SetOps
def canEqual(that: Any): Boolean

Attributes

Inherited from:
Set
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.

Attributes

Definition Classes
Inherited from:
ObservableSet
override def clone(): C

Create a copy of the receiver object.

Create a copy of the receiver object.

The default implementation of the clone method is platform dependent.

Attributes

Returns

a copy of the receiver object.

Note

not specified by SLS as a member of AnyRef

Definition Classes
SetOps -> Cloneable -> Object
Inherited from:
SetOps
def collect[B](pf: PartialFunction[T, B]): CC[B]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOnceOps
def compose[A](g: A => T): A => R

Attributes

Inherited from:
Function1
def concat[B >: T](suffix: IterableOnce[B]): CC[B]

Attributes

Inherited from:
IterableOps
def concat(that: IterableOnce[T]): C

Attributes

Inherited from:
SetOps
def contains(elem: T): Boolean

Tests if some element is contained in this Set.

Tests if some element is contained in this Set.

Value parameters

elem

the element to test for membership.

Attributes

Returns

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

Inherited from:
ObservableSet
def copyToArray[B >: T](xs: Array[B], start: Int, len: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: T](xs: Array[B], start: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: T](xs: Array[B]): Int

Attributes

Inherited from:
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: (T, B) => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def count(p: T => Boolean): Int

Attributes

Inherited from:
IterableOnceOps
def diff(that: Set[T]): C

Attributes

Inherited from:
SetOps
def drop(n: Int): C

Attributes

Inherited from:
IterableOps
def dropRight(n: Int): C

Attributes

Inherited from:
IterableOps
def dropWhile(p: T => Boolean): C

Attributes

Inherited from:
IterableOps
override def empty: Set[T]

Generates a empty ObservableSet.

Generates a empty ObservableSet.

Attributes

Returns

A empty scalafx.collections.ObservableHashSet

Definition Classes
Inherited from:
ObservableSet
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 parameters

ref

Object to be compared.

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
def exists(p: T => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def filter(pred: T => Boolean): C

Attributes

Inherited from:
IterableOps
def filterInPlace(p: T => Boolean): SetOps.this.type

Attributes

Inherited from:
SetOps
def filterNot(pred: T => Boolean): C

Attributes

Inherited from:
IterableOps
def find(p: T => Boolean): Option[A]

Attributes

Inherited from:
IterableOnceOps
def flatMap[B](f: T => IterableOnce[B]): CC[B]

Attributes

Inherited from:
IterableOps
def flatten[B](implicit asIterable: T => IterableOnce[B]): CC[B]

Attributes

Inherited from:
IterableOps
def fold[A1 >: T](z: A1)(op: (A1, A1) => A1): A1

Attributes

Inherited from:
IterableOnceOps
def foldLeft[B](z: B)(op: (B, T) => B): B

Attributes

Inherited from:
IterableOnceOps
def foldRight[B](z: B)(op: (T, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def forall(p: T => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def foreach[U](f: T => U): Unit

Attributes

Inherited from:
IterableOnceOps
protected def fromSpecific(coll: IterableOnce[T]): CC[A]

Attributes

Inherited from:
IterableFactoryDefaults
def groupBy[K](f: T => K): Map[K, C]

Attributes

Inherited from:
IterableOps
def groupMap[K, B](key: T => K)(f: T => B): Map[K, CC[B]]

Attributes

Inherited from:
IterableOps
def groupMapReduce[K, B](key: T => K)(f: T => B)(reduce: (B, B) => B): Map[K, B]

Attributes

Inherited from:
IterableOps
def grouped(size: Int): Iterator[C]

Attributes

Inherited from:
IterableOps
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
def head: A

Attributes

Inherited from:
IterableOps
def headOption: Option[A]

Attributes

Inherited from:
IterableOps
def init: C

Attributes

Inherited from:
IterableOps
def inits: Iterator[C]

Attributes

Inherited from:
IterableOps
def intersect(that: Set[T]): C

Attributes

Inherited from:
SetOps

Attributes

Inherited from:
IterableOnceOps
override def isTraversableAgain: Boolean

Attributes

Definition Classes
Inherited from:
IterableOps
def iterator: Iterator[T]

Creates a new iterator over elements of this set

Creates a new iterator over elements of this set

Attributes

Inherited from:
ObservableSet
override def knownSize: Int

Attributes

Definition Classes
Inherited from:
SetOps
def last: A

Attributes

Inherited from:
IterableOps
def lastOption: Option[A]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
Iterable
def map[B](f: T => B): CC[B]

Attributes

Inherited from:
IterableOps
def mapResult[NewTo](f: Set[T] => NewTo): Builder[A, NewTo]

Attributes

Inherited from:
Builder
def max[B >: T](implicit ord: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def maxBy[B](f: T => B)(implicit cmp: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def maxByOption[B](f: T => B)(implicit cmp: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def maxOption[B >: T](implicit ord: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def min[B >: T](implicit ord: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def minBy[B](f: T => B)(implicit cmp: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def minByOption[B](f: T => B)(implicit cmp: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def minOption[B >: T](implicit ord: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
final def mkString: String

Attributes

Inherited from:
IterableOnceOps
final def mkString(sep: String): String

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
protected def newSpecificBuilder: Builder[A, CC[A]]

Attributes

Inherited from:
IterableFactoryDefaults

Attributes

Inherited from:
IterableOnceOps
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 parameters

op

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

Attributes

Inherited from:
ObservableSet
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 parameters

op

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

Attributes

Inherited from:
ObservableSet

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 parameters

op

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

Attributes

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 parameters

op

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

Attributes

Returns

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

Inherited from:
Observable
def partition(p: T => Boolean): (C, C)

Attributes

Inherited from:
IterableOps
def partitionMap[A1, A2](f: T => Either[A1, A2]): (CC[A1], CC[A2])

Attributes

Inherited from:
IterableOps
def product[B >: T](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def reduce[B >: T](op: (B, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeft[B >: T](op: (B, T) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeftOption[B >: T](op: (B, T) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceOption[B >: T](op: (B, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceRight[B >: T](op: (T, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceRightOption[B >: T](op: (T, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def remove(elem: T): Boolean

Attributes

Inherited from:
SetOps
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

Attributes

Definition Classes
Inherited from:
ObservableSet
protected def reversed: Iterable[A]

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
Cloneable
def scan[B >: T](z: B)(op: (B, B) => B): CC[B]

Attributes

Inherited from:
IterableOps
def scanLeft[B](z: B)(op: (B, T) => B): CC[B]

Attributes

Inherited from:
IterableOps
def scanRight[B](z: B)(op: (T, B) => B): CC[B]

Attributes

Inherited from:
IterableOps
override def size: Int

Attributes

Returns

This Set's size.

Definition Classes
Inherited from:
ObservableSet

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
final def sizeHint(coll: IterableOnce[_], delta: Int): Unit

Attributes

Inherited from:
Builder

Attributes

Inherited from:
Builder

Attributes

Inherited from:
Builder
final def sizeIs: SizeCompareOps

Attributes

Inherited from:
IterableOps
def slice(from: Int, until: Int): C

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
def sliding(size: Int): Iterator[C]

Attributes

Inherited from:
IterableOps
def span(p: T => Boolean): (C, C)

Attributes

Inherited from:
IterableOps
override def splitAt(n: Int): (C, C)

Attributes

Definition Classes
Inherited from:
IterableOps
def stepper[S <: Stepper[_]](implicit shape: StepperShape[T, S]): S

Attributes

Inherited from:
IterableOnce
def subsetOf(that: Set[T]): Boolean

Attributes

Inherited from:
SetOps
def subsets(): Iterator[C]

Attributes

Inherited from:
SetOps
def subsets(len: Int): Iterator[C]

Attributes

Inherited from:
SetOps
def subtractAll(xs: IterableOnce[T]): Shrinkable.this.type

Attributes

Inherited from:
Shrinkable
def subtractOne(elem: T): ObservableSet.this.type

Removes a single element from this mutable set.

Removes a single element from this mutable set.

Value parameters

elem

the element to be removed.

Attributes

Returns

The Set itself

Inherited from:
ObservableSet
def sum[B >: T](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def tail: C

Attributes

Inherited from:
IterableOps
def tails: Iterator[C]

Attributes

Inherited from:
IterableOps
def take(n: Int): C

Attributes

Inherited from:
IterableOps
def takeRight(n: Int): C

Attributes

Inherited from:
IterableOps
def takeWhile(p: T => Boolean): C

Attributes

Inherited from:
IterableOps
override def tapEach[U](f: T => U): C

Attributes

Definition Classes
Inherited from:
IterableOps
def to[C1](factory: Factory[T, C1]): C1

Attributes

Inherited from:
IterableOnceOps
def toArray[B >: T : ClassTag]: Array[B]

Attributes

Inherited from:
IterableOnceOps
final def toBuffer[B >: T]: Buffer[B]

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
def toList: List[A]

Attributes

Inherited from:
IterableOnceOps
def toMap[K, V](implicit ev: T <:< (K, V)): Map[K, V]

Attributes

Inherited from:
IterableOnceOps
def toSeq: Seq[A]

Attributes

Inherited from:
IterableOnceOps
def toSet[B >: T]: Set[B]

Attributes

Inherited from:
IterableOnceOps
override def toString: String

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
def toVector: Vector[A]

Attributes

Inherited from:
IterableOnceOps
def transpose[B](implicit asIterable: T => Iterable[B]): CC[CC[B]]

Attributes

Inherited from:
IterableOps
final def union(that: Set[T]): C

Attributes

Inherited from:
SetOps
def unzip[A1, A2](implicit asPair: T => (A1, A2)): (CC[A1], CC[A2])

Attributes

Inherited from:
IterableOps
def unzip3[A1, A2, A3](implicit asTriple: T => (A1, A2, A3)): (CC[A1], CC[A2], CC[A3])

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
SetOps
def view: View[A]

Attributes

Inherited from:
IterableOps
def withFilter(p: T => Boolean): WithFilter[A, CC]

Attributes

Inherited from:
IterableOps
def zip[B](that: IterableOnce[B]): CC[(A, B)]

Attributes

Inherited from:
IterableOps
def zipAll[A1 >: T, B](that: Iterable[B], thisElem: A1, thatElem: B): CC[(A1, B)]

Attributes

Inherited from:
IterableOps
def zipWithIndex: CC[(A, Int)]

Attributes

Inherited from:
IterableOps
final def |(that: Set[T]): C

Attributes

Inherited from:
SetOps

Deprecated and Inherited methods

def +(elem1: T, elem2: T, elems: T*): C

Attributes

Deprecated
[Since version 2.13.0] Use ++ with an explicit collection argument instead of + with varargs
Inherited from:
SetOps
def +(elem: T): C

Attributes

Deprecated
[Since version 2.13.0] Consider requiring an immutable Set or fall back to Set.union
Inherited from:
SetOps
def ++:[B >: T](that: IterableOnce[B]): CC[B]

Attributes

Deprecated
[Since version 2.13.0] Use ++ instead of ++: for collections of type Iterable
Inherited from:
IterableOps
final def +=(elem1: T, elem2: T, elems: T*): Growable.this.type

Attributes

Deprecated
[Since version 2.13.0] Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated
Inherited from:
Growable
def -(elem1: T, elem2: T, elems: T*): C

Attributes

Deprecated
[Since version 2.13.0] Use &- with an explicit collection argument instead of - with varargs
Inherited from:
SetOps
def -(elem: T): C

Attributes

Deprecated
[Since version 2.13.0] Consider requiring an immutable Set or fall back to Set.diff
Inherited from:
SetOps
def --(that: IterableOnce[T]): C

Attributes

Deprecated
[Since version 2.13.0] Consider requiring an immutable Set
Inherited from:
SetOps
def -=(elem1: T, elem2: T, elems: T*): Shrinkable.this.type

Attributes

Deprecated
[Since version 2.13.3] Use `--=` aka `subtractAll` instead of varargs `-=`; infix operations with an operand of multiple args will be deprecated
Inherited from:
Shrinkable
final def /:[B](z: B)(op: (B, T) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from:
IterableOnceOps
final def :\[B](z: B)(op: (T, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from:
IterableOnceOps
def aggregate[B](z: => B)(seqop: (B, T) => B, combop: (B, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] `aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.
Inherited from:
IterableOnceOps

Attributes

Deprecated
[Since version 2.13.0] Use iterableFactory instead
Inherited from:
IterableOps
final def copyToBuffer[B >: T](dest: Buffer[B]): Unit

Attributes

Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from:
IterableOnceOps

Attributes

Deprecated
[Since version 2.13.0] Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
Inherited from:
IterableOnceOps
final def repr: C

Attributes

Deprecated
[Since version 2.13.0] Use coll instead of repr in a collection implementation, use the collection value itself from the outside
Inherited from:
IterableOps
final def retain(p: T => Boolean): Unit

Attributes

Deprecated
[Since version 2.13.0] Use filterInPlace instead
Inherited from:
SetOps
def seq: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.0] Iterable.seq always returns the iterable itself
Inherited from:
Iterable
final def toIterable: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.7] toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
Iterable
final def toIterator: Iterator[A]

Attributes

Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from:
IterableOnceOps
final def toStream: Stream[A]

Attributes

Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from:
IterableOnceOps
final def toTraversable: Iterable[A]

Attributes

Deprecated
[Since version 2.13.0] toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
IterableOps
def view(from: Int, until: Int): View[A]

Attributes

Deprecated
[Since version 2.13.0] Use .view.slice(from, until) instead of .view(from, until)
Inherited from:
IterableOps

Concrete fields

override val delegate: ObservableSet[T]

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes

Inherited fields

Attributes

Inherited from:
ObservableSet