org.eclipse.core.internal.dtree
Class NodeComparison

java.lang.Object
  extended by org.eclipse.core.internal.dtree.NodeComparison

public final class NodeComparison
extends java.lang.Object

This class represents the changes in a single node between two data trees.


Field Summary
static int K_ADDED
          Special bits in the comparison flag to indicate the type of change
static int K_CHANGED
           
static int K_REMOVED
           
 
Method Summary
 int getComparison()
          Returns an integer describing the changes between the two data objects.
 java.lang.Object getNewData()
          Returns the data of the new node.
 java.lang.Object getOldData()
          Returns the data of the old node.
 int getUserComparison()
          Returns the client specified integer
 java.lang.String toString()
          For debugging
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

K_ADDED

public static final int K_ADDED
Special bits in the comparison flag to indicate the type of change

See Also:
Constant Field Values

K_REMOVED

public static final int K_REMOVED
See Also:
Constant Field Values

K_CHANGED

public static final int K_CHANGED
See Also:
Constant Field Values
Method Detail

getComparison

public int getComparison()
Returns an integer describing the changes between the two data objects. The four possible values are K_ADDED, K_REMOVED, K_CHANGED, or 0 representing no change.


getNewData

public java.lang.Object getNewData()
Returns the data of the new node.


getOldData

public java.lang.Object getOldData()
Returns the data of the old node.


getUserComparison

public int getUserComparison()
Returns the client specified integer


toString

public java.lang.String toString()
For debugging

Overrides:
toString in class java.lang.Object