Package com.topologi.diffx.config
Enum Class WhiteSpaceProcessing
- All Implemented Interfaces:
Serializable,Comparable<WhiteSpaceProcessing>,Constable
Defines how white spaces should be processed.
White space processing can have functional implications at all stages of diffing, including when loading and formatting.
- Version:
- 10 May 2010
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhite spaces should be preserved throughout the process and compared.All white spaces should be completely ignored, this is the most efficient processing.White spaces should be preserved, that is they will be loaded and returned during formatting, but the algorithm can consider them equivalent and will not report differences between white spaces. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WhiteSpaceProcessingReturns the enum constant of this class with the specified name.static WhiteSpaceProcessing[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORE
All white spaces should be completely ignored, this is the most efficient processing. -
PRESERVE
White spaces should be preserved, that is they will be loaded and returned during formatting, but the algorithm can consider them equivalent and will not report differences between white spaces. -
COMPARE
White spaces should be preserved throughout the process and compared. All white space differences will be reported by the algorithm. This is the most costly processing.
-
-
Constructor Details
-
WhiteSpaceProcessing
private WhiteSpaceProcessing()
-
-
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
-