K
- key typeV
- value typepublic abstract static class MapChangeListener.Change<K,V> extends Object
Constructor and Description |
---|
Change(ObservableMap<K,V> map)
Constructs a change associated with a map.
|
Modifier and Type | Method and Description |
---|---|
abstract K |
getKey()
A key associated with the change.
|
ObservableMap<K,V> |
getMap()
An observable map that is associated with the change.
|
abstract V |
getValueAdded()
Get the new value of the key.
|
abstract V |
getValueRemoved()
Get the old value of the key.
|
abstract boolean |
wasAdded()
If this change is a result of add operation.
|
abstract boolean |
wasRemoved()
If this change is a result of removal operation.
|
public Change(ObservableMap<K,V> map)
map
- the source of the changepublic ObservableMap<K,V> getMap()
public abstract boolean wasAdded()
public abstract boolean wasRemoved()
public abstract K getKey()
public abstract V getValueAdded()
public abstract V getValueRemoved()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.