Package com.google.googlejavaformat.java
Enum JavaFormatterOptions.Style
- java.lang.Object
-
- java.lang.Enum<JavaFormatterOptions.Style>
-
- com.google.googlejavaformat.java.JavaFormatterOptions.Style
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<JavaFormatterOptions.Style>
- Enclosing class:
- JavaFormatterOptions
public static enum JavaFormatterOptions.Style extends java.lang.Enum<JavaFormatterOptions.Style>
-
-
Field Summary
Fields Modifier and Type Field Description private intindentationMultiplier
-
Constructor Summary
Constructors Modifier Constructor Description privateStyle(int indentationMultiplier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intindentationMultiplier()static JavaFormatterOptions.StylevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JavaFormatterOptions.Style[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GOOGLE
public static final JavaFormatterOptions.Style GOOGLE
The default Google Java Style configuration.
-
AOSP
public static final JavaFormatterOptions.Style AOSP
The AOSP-compliant configuration.
-
-
Method Detail
-
values
public static JavaFormatterOptions.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 (JavaFormatterOptions.Style c : JavaFormatterOptions.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 JavaFormatterOptions.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
-
indentationMultiplier
int indentationMultiplier()
-
-