|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.core.databinding.observable.Diffs
| Constructor Summary | |
|---|---|
Diffs()
|
|
| Method Summary | |
|---|---|
static ListDiff |
computeListDiff(List oldList,
List newList)
|
static MapDiff |
computeMapDiff(Map oldMap,
Map newMap)
Computes the difference between two maps. |
static SetDiff |
computeSetDiff(Set oldSet,
Set newSet)
|
static ListDiff |
createListDiff(ListDiffEntry difference)
|
static ListDiff |
createListDiff(ListDiffEntry[] differences)
|
static ListDiff |
createListDiff(ListDiffEntry difference1,
ListDiffEntry difference2)
|
static ListDiffEntry |
createListDiffEntry(int position,
boolean isAddition,
Object element)
|
static MapDiff |
createMapDiff(Set addedKeys,
Set removedKeys,
Set changedKeys,
Map oldValues,
Map newValues)
|
static MapDiff |
createMapDiffRemoveAll(Map copyOfOldMap)
|
static MapDiff |
createMapDiffSingleAdd(Object addedKey,
Object newValue)
|
static MapDiff |
createMapDiffSingleChange(Object existingKey,
Object oldValue,
Object newValue)
|
static MapDiff |
createMapDiffSingleRemove(Object removedKey,
Object oldValue)
|
static SetDiff |
createSetDiff(Set additions,
Set removals)
|
static ValueDiff |
createValueDiff(Object oldValue,
Object newValue)
|
static boolean |
equals(Object left,
Object right)
Checks whether the two objects are null -- allowing for
null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Diffs()
| Method Detail |
public static ListDiff computeListDiff(List oldList,
List newList)
oldList - newList -
public static final boolean equals(Object left,
Object right)
null -- allowing for
null.
left - The left object to compare; may be null.right - The right object to compare; may be null.
true if the two objects are equivalent;
false otherwise.
public static SetDiff computeSetDiff(Set oldSet,
Set newSet)
oldSet - newSet -
public static MapDiff computeMapDiff(Map oldMap,
Map newMap)
oldMap - newMap -
public static ValueDiff createValueDiff(Object oldValue,
Object newValue)
oldValue - newValue -
public static SetDiff createSetDiff(Set additions,
Set removals)
additions - removals -
public static ListDiff createListDiff(ListDiffEntry difference)
difference -
public static ListDiff createListDiff(ListDiffEntry difference1,
ListDiffEntry difference2)
difference1 - difference2 -
public static ListDiff createListDiff(ListDiffEntry[] differences)
differences -
public static ListDiffEntry createListDiffEntry(int position,
boolean isAddition,
Object element)
position - isAddition - element -
public static MapDiff createMapDiffSingleAdd(Object addedKey,
Object newValue)
addedKey - newValue -
public static MapDiff createMapDiffSingleChange(Object existingKey,
Object oldValue,
Object newValue)
existingKey - oldValue - newValue -
public static MapDiff createMapDiffSingleRemove(Object removedKey,
Object oldValue)
removedKey - oldValue -
public static MapDiff createMapDiffRemoveAll(Map copyOfOldMap)
copyOfOldMap -
public static MapDiff createMapDiff(Set addedKeys,
Set removedKeys,
Set changedKeys,
Map oldValues,
Map newValues)
addedKeys - removedKeys - changedKeys - oldValues - newValues -
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.