Package com.diffplug.spotless.kotlin
Enum KtfmtStep.Style
- java.lang.Object
-
- java.lang.Enum<KtfmtStep.Style>
-
- com.diffplug.spotless.kotlin.KtfmtStep.Style
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<KtfmtStep.Style>
- Enclosing class:
- KtfmtStep
public static enum KtfmtStep.Style extends java.lang.Enum<KtfmtStep.Style>
Used to allow multiple style option through formatting options and since when is each of them available.- See Also:
- ktfmt source
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
DROPBOX
GOOGLE
KOTLINLANG
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KtfmtStep.Style
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static KtfmtStep.Style[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final KtfmtStep.Style DEFAULT
-
DROPBOX
public static final KtfmtStep.Style DROPBOX
-
GOOGLE
public static final KtfmtStep.Style GOOGLE
-
KOTLINLANG
public static final KtfmtStep.Style KOTLINLANG
-
-
Method Detail
-
values
public static KtfmtStep.Style[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KtfmtStep.Style c : KtfmtStep.Style.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KtfmtStep.Style valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-