ObservableHashMap
scalafx.collections.ObservableMap implementation backed for a `HashMap` from Java Collection.
Value parameters
- delegate
-
JavaFX `ObservableMap` instance to be wrapped by this class. By default it is a `HashMap` wrapped by `observableMap` method from `FXCollections`.
Attributes
- Graph
-
- Supertypes
-
trait Observabletrait Shrinkable[K]trait Clearabletrait Cloneabletrait Equalstrait K => Vclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Inherited methods
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- Growable
Attributes
- Inherited from:
- Shrinkable
Attributes
- Inherited from:
- Shrinkable
Attributes
- Inherited from:
- Growable
Adds a new key/value pair to this Map.
Adds a new key/value pair to this Map.
Value parameters
- kv
-
the key/value pair.
Attributes
- Returns
-
The
ObservableMapitself - Definition Classes
- Inherited from:
- ObservableMap
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- MapOps
Removes all elements from the Map. After this operation has completed, the Map will be empty.
Removes all elements from the Map. After this operation has completed, the Map will be empty.
Attributes
- Definition Classes
- Inherited from:
- ObservableMap
Create a copy of the receiver object.
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- PartialFunction
The empty map of the same type as this Map.
The empty map of the same type as this Map.
Attributes
- Returns
-
An empty
ObservableMap - Definition Classes
- Inherited from:
- ObservableMap
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
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- MapOps
Attributes
- Definition Classes
- Inherited from:
- MapFactoryDefaults
Optionally returns the value associated with a key.
Optionally returns the value associated with a key.
Value parameters
- key
-
the key value
Attributes
- Returns
-
an option value containing the value associated with key in this
Map, or None if none exists. - Definition Classes
- Inherited from:
- ObservableMap
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Returns
-
The delegate hashcode
- Definition Classes
-
SFXDelegate -> Any
- Inherited from:
- SFXDelegate
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- Iterable
Creates a new `Iterator` over all key/value pairs of this ObservableMap.
Creates a new `Iterator` over all key/value pairs of this ObservableMap.
Attributes
- Returns
-
The new
iterator. - Inherited from:
- ObservableMap
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- MapOps
Attributes
- Definition Classes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Iterable
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- ObservableMap
Attributes
- Inherited from:
- Builder
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- MapFactoryDefaults
Attributes
- Inherited from:
- IterableOnceOps
Add a listener function to Map's changes. This function '''will not handle''' this Map's modifications data.
Add a listener function to Map's changes. This function '''will not handle''' this Map's modifications data.
Value parameters
- op
-
No-argument function to be activated when some change in this
ObservableMapwas made.
Attributes
- Inherited from:
- ObservableMap
Add a listener function to Map's changes. This function '''will handle''' this map's modifications data.
Add a listener function to Map's changes. This function '''will handle''' this map's modifications data.
Value parameters
- op
-
Function that will handle this
ObservableMap's modifications data to be activated when some change was made.
Attributes
- Inherited from:
- ObservableMap
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
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
The result when this Map is used as a builder.
The result when this Map is used as a builder.
Attributes
- Definition Classes
- Inherited from:
- ObservableMap
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- Cloneable
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
This Map's size.
This Map's size.
Attributes
- Returns
-
This
Map's size. - Definition Classes
- Inherited from:
- ObservableMap
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Builder
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnce
Attributes
- Inherited from:
- Shrinkable
Removes a key from this Map.
Removes a key from this Map.
Value parameters
- key
-
the key to be removed
Attributes
- Returns
-
The
ObservableMapitself. - Definition Classes
- Inherited from:
- ObservableMap
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Returns
-
Returns the original delegate's
toString()adding a[SFX]prefix. - Definition Classes
-
SFXDelegate -> Any
- Inherited from:
- SFXDelegate
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- MapOps
Attributes
- Definition Classes
- Inherited from:
- MapOps
Attributes
- Inherited from:
- Map
Attributes
- Inherited from:
- Map
Attributes
- Definition Classes
- Inherited from:
- MapFactoryDefaults
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Deprecated and Inherited methods
Attributes
- Deprecated
-
[Since version 2.13.0]Use ++ with an explicit collection argument instead of + with varargs - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]Consider requiring an immutable Map or fall back to Map.concat. - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use ++ instead of ++: for collections of type Iterable - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use ++ instead of ++: for collections of type Iterable - Inherited from:
- MapOps
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
Attributes
- Deprecated
-
[Since version 2.13.0]Use -- or removeAll on an immutable Map - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use - or remove on an immutable Map - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]Consider requiring an immutable Map. - Inherited from:
- MapOps
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
Attributes
- Deprecated
-
[Since version 2.13.0]Use foldLeft instead of /: - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use foldRight instead of :\\ - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]For sequential collections, prefer `foldLeft(z)(seqop)`. For parallel collections, use `ParIterableLike#aggregate`. - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use iterableFactory instead - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use `dest ++= coll` instead - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use .view.filterKeys(f). A future version will include a strict version of this method (for now, .view.filterKeys(p).toMap). - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details) - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use .view.mapValues(f). A future version will include a strict version of this method (for now, .view.mapValues(f).toMap). - Inherited from:
- MapOps
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
Attributes
- Deprecated
-
[Since version 2.13.0]Use filterInPlace instead - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]Iterable.seq always returns the iterable itself - Inherited from:
- Iterable
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
Attributes
- Deprecated
-
[Since version 2.13.0]Use .iterator instead of .toIterator - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use .to(LazyList) instead of .toStream - Inherited from:
- IterableOnceOps
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
Attributes
- Deprecated
-
[Since version 2.13.0]Use mapValuesInPlace instead - Inherited from:
- MapOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use m.clone().addOne((k,v)) instead of m.updated(k, v) - Inherited from:
- MapOps
Concrete fields
JavaFX object to be wrapped.
JavaFX object to be wrapped.