|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.databinding.observable.map.MapDiff
public abstract class MapDiff
Constructor Summary | |
---|---|
MapDiff()
|
Method Summary | |
---|---|
void |
applyTo(java.util.Map map)
Applies the changes in this diff to the given map |
abstract java.util.Set |
getAddedKeys()
|
abstract java.util.Set |
getChangedKeys()
|
abstract java.lang.Object |
getNewValue(java.lang.Object key)
Returns the new value for the given key, which must be an element of getChangedKeys() or getAddedKeys() . |
abstract java.lang.Object |
getOldValue(java.lang.Object key)
Returns the old value for the given key, which must be an element of getRemovedKeys() or getChangedKeys() . |
abstract java.util.Set |
getRemovedKeys()
|
boolean |
isEmpty()
Returns true if the diff has no added, removed or changed entries. |
java.util.Map |
simulateOn(java.util.Map map)
Returns a map showing what map would look like if this diff
were applied to it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapDiff()
Method Detail |
---|
public boolean isEmpty()
public void applyTo(java.util.Map map)
map
- the map to which the diff will be appliedpublic java.util.Map simulateOn(java.util.Map map)
map
would look like if this diff
were applied to it.
Note: the returned map is only valid until structural changes are made to the passed-in map.
map
- the map over which the diff will be simulated
map
would look like
if it were passed to the applyTo(Map)
method.applyTo(Map)
public abstract java.util.Set getAddedKeys()
public abstract java.util.Set getRemovedKeys()
public abstract java.util.Set getChangedKeys()
public abstract java.lang.Object getOldValue(java.lang.Object key)
getRemovedKeys()
or getChangedKeys()
.
key
-
public abstract java.lang.Object getNewValue(java.lang.Object key)
getChangedKeys()
or getAddedKeys()
.
key
-
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.