public class CompareResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DIFFERENT_CONTENT
Contributors have different content
|
static int |
DIFFERENT_SIZE
Contributors have different size
|
static int |
EQUAL
Contributors are equal
|
static int |
NO_LEFT
there is no left contributor
|
static int |
NO_LEFT_RIGHT
There is no left and right contributor
|
static int |
NO_RIGHT
There is no right contributor
|
static int |
UNKNOWN
Status is unknown
|
static CompareResult |
UNKNOWN_RESULT
Provide default CompareResult.
|
Constructor and Description |
---|
CompareResult(int status,
long position)
Constructs a new CompareResult
|
Modifier and Type | Method and Description |
---|---|
long |
getPosition()
Retrieves the position of the first difference if files have
DIFFERENT_CONTENT.
|
int |
getStatus()
Retrieves the status of the compare result - one of EQUAL,
DIFFERENT_CONTENT, DIFFERENT_SIZE, NO_LEFT, NO_RIGHT or NO_LEFT_RIGHT
|
java.lang.String |
toString()
Will format a localized String representation of the Compare Result
|
public static final int EQUAL
public static final int DIFFERENT_CONTENT
public static final int DIFFERENT_SIZE
public static final int NO_LEFT
public static final int NO_RIGHT
public static final int NO_LEFT_RIGHT
public static final int UNKNOWN
public static final CompareResult UNKNOWN_RESULT
public CompareResult(int status, long position)
status
- -
one of EQUAL, DIFFERENT_CONTENT, DIFFERENT_SIZE, NO_LEFT,
NO_RIGHT or NO_LEFT_RIGHTposition
- of the first difference if files have DIFFERENT_CONTENTpublic int getStatus()
public long getPosition()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()