Package ai.timefold.jpyinterpreter.util
Class DefaultFormatSpec
java.lang.Object
ai.timefold.jpyinterpreter.util.DefaultFormatSpec
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionHow padding should be applied to fill widthHow the value should be displayedfinal StringThe character to use for paddingWhat to use for the thousands' seperatorHow many significant digits for floating point numbers.final booleanIf true, modify the displayed output for someDefaultFormatSpec.ConversionTypeThe minimum space the output should satisfy -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultFormatSpecfromSpec(PythonString formatSpec) static DefaultFormatSpecfromStringSpec(PythonString formatSpec) For use byPythonString, where since Python 3.10, 0 before width do not affect default alignment of strings.int
-
Field Details
-
fillCharacter
The character to use for padding -
useAlternateForm
public final boolean useAlternateFormIf true, modify the displayed output for someDefaultFormatSpec.ConversionType -
alignment
How padding should be applied to fill width -
signOption
-
width
The minimum space the output should satisfy -
groupingOption
What to use for the thousands' seperator -
precision
How many significant digits for floating point numbers. For strings, the maximum space the output should satisfy. Not allowed for int types. -
conversionType
How the value should be displayed
-
-
Method Details
-
fromSpec
-
fromStringSpec
For use byPythonString, where since Python 3.10, 0 before width do not affect default alignment of strings. -
getPrecisionOrDefault
public int getPrecisionOrDefault()
-