K
- The key type.A
- The exposed map element type.B
- Auxiliary data subclasses may wish to store in the backing map.public class ReadOnlyBackedObservableMapBase<K,A,B>
class ReadOnlyBackedObservableMapBase
is a base class implementing all abstract functions required for an ObservableMap
using a backing HashMap that subclasses should modify.
Non-read-only API calls throw.
class ReadOnlyBackedObservableMapBase
Constructor and Description |
---|
ReadOnlyBackedObservableMapBase()
class ReadOnlyBackedObservableMapBase is a base class implementing all abstract functions required for an ObservableMap
using a backing HashMap that subclasses should modify. |
Modifier and Type | Method and Description |
---|---|
void |
addListener(javafx.beans.InvalidationListener listener) |
void |
addListener(javafx.collections.MapChangeListener<? super K,? super A> listener) |
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set |
entrySet() |
void |
fireChange(javafx.collections.MapChangeListener.Change<? extends K,? extends A> change) |
A |
get(java.lang.Object key) |
java.util.HashMap<K,kotlin.Pair> |
getBackingMap() |
java.util.Set<java.util.Map.Entry> |
getEntries() |
java.util.Set<K> |
getKeys() |
int |
getSize() |
java.util.Collection<A> |
getValues() |
boolean |
isEmpty() |
java.util.Set |
keySet() |
A |
put(K key,
A value) |
void |
putAll(java.util.Map<? extends K,? extends A> from) |
A |
remove(java.lang.Object key) |
void |
removeListener(javafx.beans.InvalidationListener listener) |
void |
removeListener(javafx.collections.MapChangeListener<? super K,? super A> listener) |
int |
size() |
java.util.Collection |
values() |
public ReadOnlyBackedObservableMapBase()
class ReadOnlyBackedObservableMapBase
is a base class implementing all abstract functions required for an ObservableMap
using a backing HashMap that subclasses should modify.
Non-read-only API calls throw.
class ReadOnlyBackedObservableMapBase
public java.util.HashMap<K,kotlin.Pair> getBackingMap()
public void fireChange(javafx.collections.MapChangeListener.Change<? extends K,? extends A> change)
public void addListener(javafx.beans.InvalidationListener listener)
public void addListener(javafx.collections.MapChangeListener<? super K,? super A> listener)
public void removeListener(javafx.beans.InvalidationListener listener)
public void removeListener(javafx.collections.MapChangeListener<? super K,? super A> listener)
public int getSize()
public int size()
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public A get(java.lang.Object key)
public boolean isEmpty()
public java.util.Set<java.util.Map.Entry> getEntries()
public java.util.Set entrySet()
public java.util.Set<K> getKeys()
public java.util.Set keySet()
public java.util.Collection<A> getValues()
public java.util.Collection values()
public void clear()
public A put(K key, A value)
public void putAll(java.util.Map<? extends K,? extends A> from)
public A remove(java.lang.Object key)