APIdia Launch Partner
Top Fields Constructors Methods
com.sun.javafx.collections

public Class MapAdapterChange<K, V>

extends MapChangeListener.Change<K, V>
Class Inheritance
Imports
javafx.collections.MapChangeListener, .MapChangeListener.Change, .ObservableMap

Field Summary

Modifier and TypeField and Description
private final MapChangeListener.Change<? extends K, ? extends V>

Constructor Summary

AccessConstructor and Description
public
MapAdapterChange(ObservableMap<K, V> map, MapChangeListener.Change<? extends K, ? extends V> change)

Method Summary

Modifier and TypeMethod and Description
public K
getKey()

Implements abstract javafx.collections.MapChangeListener.Change.getKey.

A key associated with the change.

public V
getValueAdded()

Implements abstract javafx.collections.MapChangeListener.Change.getValueAdded.

Get the new value of the key.

public V
getValueRemoved()

Implements abstract javafx.collections.MapChangeListener.Change.getValueRemoved.

Get the old value of the key.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public boolean
wasAdded()

Implements abstract javafx.collections.MapChangeListener.Change.wasAdded.

If this change is a result of add operation.

public boolean
wasRemoved()

Implements abstract javafx.collections.MapChangeListener.Change.wasRemoved.

If this change is a result of removal operation.

Inherited from javafx.collections.MapChangeListener.Change:
getMap

Field Detail

changeback to summary
private final MapChangeListener.Change<? extends K, ? extends V> change

Constructor Detail

MapAdapterChangeback to summary
public MapAdapterChange(ObservableMap<K, V> map, MapChangeListener.Change<? extends K, ? extends V> change)

Method Detail

getKeyback to summary
public K getKey()

Implements abstract javafx.collections.MapChangeListener.Change.getKey.

Doc from javafx.collections.MapChangeListener.Change.getKey.

A key associated with the change. If the change is a remove change, the key no longer exist in a map. Otherwise, the key got set to a new value.

Annotations
@Override
getValueAddedback to summary
public V getValueAdded()

Implements abstract javafx.collections.MapChangeListener.Change.getValueAdded.

Doc from javafx.collections.MapChangeListener.Change.getValueAdded.

Get the new value of the key. Return null if this is a removal.

Annotations
@Override
getValueRemovedback to summary
public V getValueRemoved()

Implements abstract javafx.collections.MapChangeListener.Change.getValueRemoved.

Doc from javafx.collections.MapChangeListener.Change.getValueRemoved.

Get the old value of the key. This is null if and only if the value was added to the key that was not previously in the map.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
wasAddedback to summary
public boolean wasAdded()

Implements abstract javafx.collections.MapChangeListener.Change.wasAdded.

Doc from javafx.collections.MapChangeListener.Change.wasAdded.

If this change is a result of add operation.

Annotations
@Override
wasRemovedback to summary
public boolean wasRemoved()

Implements abstract javafx.collections.MapChangeListener.Change.wasRemoved.

Doc from javafx.collections.MapChangeListener.Change.wasRemoved.

If this change is a result of removal operation. Note that an element might be removed even as a result of put operation.

Annotations
@Override