java.util
Class FormattableFlags
public
class
FormattableFlags
extends Object
This class contains a set of flags used
by the
Formattable method.
They are used to modify the output of the
Formattable. The interpretation and
validation of the flags is left to the
particular
Formattable.
Since: 1.5
public static final int ALTERNATE
Requires the use of an alternate form, as specified
in the documentation of
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
toUpperCase with
the formatting locale. The output is as for the
format specifier '^' ('^').