Package com.deltawalker.script
Enum Class PatchFormat
- All Implemented Interfaces:
Serializable,Comparable<PatchFormat>,Constable
The formats of a
ReportKind.PATCH report.- Since:
- 2.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA patch where changed lines are shown together with some unchanged lines before and after them, which provide context.A variation of theNORMALformat.The traditional patch format where a stands for added, d for deleted and c for changed.An improved version of theCONTEXTformat that produces a smaller patch, with old and new text shown next to each other. -
Method Summary
Modifier and TypeMethodDescriptionstatic PatchFormatReturns the enum constant of this class with the specified name.static PatchFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
CONTEXT
A patch where changed lines are shown together with some unchanged lines before and after them, which provide context. -
EDIT_SCRIPT
A variation of theNORMALformat. -
NORMAL
The traditional patch format where a stands for added, d for deleted and c for changed. Line numbers of the original file appear before a/d/c and those of the modified file appear after. The less-than and greater-than signs (at the beginning of lines that are added, deleted or changed) indicate which file the lines appear in. Addition lines are added to the original file to appear in the new file. Deletion lines are deleted from the original file to be missing in the new file. By default, lines common to both files are not shown. Lines that have moved are shown as added at their new location and as deleted from their old location. -
UNIFIED
An improved version of theCONTEXTformat that produces a smaller patch, with old and new text shown next to each other.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-