Enum JavaBaseline

java.lang.Object
java.lang.Enum<JavaBaseline>
io.spring.javaformat.config.JavaBaseline
All Implemented Interfaces:
Serializable, Comparable<JavaBaseline>, java.lang.constant.Constable

public enum JavaBaseline extends Enum<JavaBaseline>
Java JDK baseline version expected be used when formatting.
Author:
Phillip Webb
  • Enum Constant Details

    • V8

      public static final JavaBaseline V8
      Use JDK 8+ compatible formatter.
    • V11

      public static final JavaBaseline V11
      Use JDK 11+ or higher compatible formatter.
  • Method Details

    • values

      public static JavaBaseline[] 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

      public static JavaBaseline valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null