Enum Doc.FillMode

java.lang.Object
java.lang.Enum<Doc.FillMode>
com.google.googlejavaformat.Doc.FillMode
All Implemented Interfaces:
Serializable, Comparable<Doc.FillMode>, java.lang.constant.Constable
Enclosing class:
Doc

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

    • UNIFIED

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

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

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

    • values

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