Enum Class DefaultFormatSpec.AlignmentOption

java.lang.Object
java.lang.Enum<DefaultFormatSpec.AlignmentOption>
ai.timefold.jpyinterpreter.util.DefaultFormatSpec.AlignmentOption
All Implemented Interfaces:
Serializable, Comparable<DefaultFormatSpec.AlignmentOption>, Constable
Enclosing class:
DefaultFormatSpec

public static enum DefaultFormatSpec.AlignmentOption extends Enum<DefaultFormatSpec.AlignmentOption>
  • Enum Constant Details

    • LEFT_ALIGN

      public static final DefaultFormatSpec.AlignmentOption LEFT_ALIGN
      Forces the field to be left-aligned within the available space (this is the default for most objects).
    • RIGHT_ALIGN

      public static final DefaultFormatSpec.AlignmentOption RIGHT_ALIGN
      Forces the field to be right-aligned within the available space (this is the default for numbers).
    • RESPECT_SIGN_RIGHT_ALIGN

      public static final DefaultFormatSpec.AlignmentOption RESPECT_SIGN_RIGHT_ALIGN
      Forces the padding to be placed after the sign (if any) but before the digits. This is used for printing fields in the form ‘+000000120’. This alignment option is only valid for numeric types. It becomes the default for numbers when ‘0’ immediately precedes the field width.
    • CENTER_ALIGN

      public static final DefaultFormatSpec.AlignmentOption CENTER_ALIGN
      Forces the field to be centered within the available space.
  • Method Details

    • values

      public static DefaultFormatSpec.AlignmentOption[] 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 DefaultFormatSpec.AlignmentOption 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
    • fromString

      public static DefaultFormatSpec.AlignmentOption fromString(String text)