| Enum Constant and Description |
|---|
NEW
the new version of the file (after changes applied)
|
OLD
the old version of the file (before changes applied)
|
SIDEBYSIDE
side-by-side diff
|
TEXT
traditional ed diff (no context lines)
|
UNIFIED
unified diff (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
static DiffType |
get(char c)
Get the diff type for the given abbreviation.
|
static DiffType |
get(java.lang.String c)
Get the diff type for the given abbreviation or name.
|
char |
getAbbrev()
Get the abbreviation to be used for this diff type.
|
java.lang.String |
toString() |
static DiffType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DiffType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiffType SIDEBYSIDE
public static final DiffType UNIFIED
public static final DiffType TEXT
public static final DiffType OLD
public static final DiffType NEW
public static DiffType[] values()
for (DiffType c : DiffType.values()) System.out.println(c);
public static DiffType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic static final DiffType get(char c)
c - abbreviation to check.null if not found, the diff type otherwise.public static final DiffType get(java.lang.String c)
c - abbreviation or name to check.null if not found, the diff type otherwise.public char getAbbrev()
public java.lang.String toString()
toString in class java.lang.Enum<DiffType>