Enum Class FillMode

java.lang.Object
java.lang.Enum<FillMode>
com.palantir.javaformat.doc.FillMode
All Implemented Interfaces:
Serializable, Comparable<FillMode>, Constable

public enum FillMode extends Enum<FillMode>
Each Break in a Level is either UNIFIED or INDEPENDENT.
  • Enum Constant Details

    • UNIFIED

      public static final FillMode UNIFIED
      If a Level will not fit on one line, all of its UNIFIED Breaks will be broken.
    • INDEPENDENT

      public static final FillMode INDEPENDENT
      If a Level will not fit on one line, its INDEPENDENT Breaks will be broken independently of each other, to fill in the Level.
    • FORCED

      public static final FillMode FORCED
      A FORCED Break will always be broken, and a Level it appears in will not fit on one line.
  • Method Details

    • values

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

      public static FillMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null