Enum LineWrappingHandler.LineWrappingOptions
java.lang.Object
java.lang.Enum<LineWrappingHandler.LineWrappingOptions>
com.puppycrawl.tools.checkstyle.checks.indentation.LineWrappingHandler.LineWrappingOptions
- All Implemented Interfaces:
Serializable
,Comparable<LineWrappingHandler.LineWrappingOptions>
- Enclosing class:
- LineWrappingHandler
public static enum LineWrappingHandler.LineWrappingOptions
extends Enum<LineWrappingHandler.LineWrappingOptions>
Enum to be used for test if first line's indentation should be checked or not.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFirst line's indentation should NOT be checked.First line's indentation should be checked. -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
IGNORE_FIRST_LINE
First line's indentation should NOT be checked. -
NONE
First line's indentation should be checked.
-
-
Constructor Details
-
LineWrappingOptions
private LineWrappingOptions()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
ofBoolean
Builds enum value from boolean.- Parameters:
val
- value.- Returns:
- enum instance.
-