java.util
Class FormattableFlags
public
class
FormattableFlags
extends Object
This class contains a set of flags used
by the {@link Formattable#formatTo()} method.
They are used to modify the output of the
{@link Formattable}. The interpretation and
validation of the flags is left to the
particular {@link Formattable}.
Since: 1.5
Field Summary |
static int | ALTERNATE
Requires the use of an alternate form, as specified
in the documentation of {@link Formattable}.
|
static int | LEFT_JUSTIFY
Requires the output to be left-justified. |
static int | UPPERCASE
Requires the output to be in uppercase. |
public static final int ALTERNATE
Requires the use of an alternate form, as specified
in the documentation of {@link Formattable}.
The output is as for the format specifier
'#' ('#').
public static final int LEFT_JUSTIFY
Requires the output to be left-justified. Any spaces
required to meet the specified width will be added to
the right of the output. The default output is
right-justified, where spaces are added to the left.
The output is as for the format specifier
'-' ('-').
public static final int UPPERCASE
Requires the output to be in uppercase. The output
should be the same as the result from calling
{@link String#toUpperCase(java.util.Locale)} with
the formatting locale. The output is as for the
format specifier '^' ('^').