public abstract class Diff extends java.lang.Object implements IDiff
IDiff that can be subclassed by
clients.ITwoWayDiff,
IThreeWayDiff| Modifier and Type | Field and Description |
|---|---|
static int |
KIND_MASK
Constant (bit mask) that defines the area of the status that is reserved
for use by this abstract class for encoding the kind of the diff.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Diff(IPath path,
int status)
Create a diff node.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getKind()
Returns the kind of this diff.
|
IPath |
getPath()
Returns the full, absolute path of the object to which the diff applies
with respect to the model root.
|
int |
getStatus()
Return the status of the diff node.
|
int |
hashCode() |
java.lang.String |
toDiffString()
Return a string that describes the difference represented by
this node.
|
public static final int KIND_MASK
getStatus(),
Constant Field Valuesprotected Diff(IPath path, int status)
path - the path of the diffstatus - the status of the diff. The kind should be encoded in the
status along with any additional flags required by a subclass.public IPath getPath()
IDiffNote: the returned path never has a trailing separator.
public int getKind()
IDiffADDED, REMOVED, CHANGED.getKind in interface IDiffIDiff.ADD,
IDiff.REMOVE,
IDiff.CHANGEpublic final int getStatus()
KIND_MASK.public java.lang.String toDiffString()
IDifftoDiffString in interface IDiffpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.