java.util
Class FormattableFlags

java.lang.Object
  extended by java.util.FormattableFlags

public class FormattableFlags
extends Object

This class contains a set of flags used by the Formattable#formatTo() 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

Field Summary
static int ALTERNATE
          Requires the use of an alternate form, as specified in the documentation of Formattable.
static int LEFT_JUSTIFY
          Requires the output to be left-justified.
static int UPPERCASE
          Requires the output to be in uppercase.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT_JUSTIFY

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 '-' ('-').

See Also:
Constant Field Values

UPPERCASE

public static final int UPPERCASE
Requires the output to be in uppercase. The output should be the same as the result from calling String.toUpperCase(java.util.Locale) with the formatting locale. The output is as for the format specifier '^' ('^').

See Also:
Constant Field Values

ALTERNATE

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 '#' ('#').

See Also:
Constant Field Values