Package ai.timefold.jpyinterpreter.util
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>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionForces the field to be centered within the available space.Forces the field to be left-aligned within the available space (this is the default for most objects).Forces the padding to be placed after the sign (if any) but before the digits.Forces the field to be right-aligned within the available space (this is the default for numbers). -
Method Summary
Modifier and TypeMethodDescriptionfromString(String text) Returns the enum constant of this class with the specified name.static DefaultFormatSpec.AlignmentOption[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEFT_ALIGN
Forces the field to be left-aligned within the available space (this is the default for most objects). -
RIGHT_ALIGN
Forces the field to be right-aligned within the available space (this is the default for numbers). -
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
Forces the field to be centered within the available space.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
fromString
-