| gnu.text.ReportFormat gnu.text.IntegerFormat
All known Subclasses: gnu.kawa.functions.IntegerFormat,
IntegerFormat | public class IntegerFormat extends ReportFormat (Code) | | Handle formatting of integers.
Used to implement the Common Lisp ~D (Decimal), ~X (Hexadecimal),
~O (Octal), ~B (Binary), and ~R (Radix) Common Lisp formats operators.
|
Field Summary | |
final public static int | MIN_DIGITS The minWidth is minimum number of digits, not minimum total width. | final public static int | PAD_RIGHT | final public static int | SHOW_BASE Add "0x" (hex) or "0" (octal) prefix. | final public static int | SHOW_GROUPS Do groups (for example thousands, using commas). | final public static int | SHOW_PLUS If value is non-negative, emit a '+'. | final public static int | SHOW_SPACE If value is non-negative, emit an initial ' '. | final public static int | UPPERCASE | public int | base | public int | commaChar | public int | commaInterval | public int | flags | public int | minWidth Minimal width of the result, includiing sign, commas, etc.
However, if the MIN_DIGITS flag is given, it's the minimum number
of digits instead. | public int | padChar The padding characters, by default ' '. |
MIN_DIGITS | final public static int MIN_DIGITS(Code) | | The minWidth is minimum number of digits, not minimum total width.
|
PAD_RIGHT | final public static int PAD_RIGHT(Code) | | |
SHOW_BASE | final public static int SHOW_BASE(Code) | | Add "0x" (hex) or "0" (octal) prefix.
|
SHOW_GROUPS | final public static int SHOW_GROUPS(Code) | | Do groups (for example thousands, using commas).
|
SHOW_PLUS | final public static int SHOW_PLUS(Code) | | If value is non-negative, emit a '+'.
|
SHOW_SPACE | final public static int SHOW_SPACE(Code) | | If value is non-negative, emit an initial ' '.
|
UPPERCASE | final public static int UPPERCASE(Code) | | |
commaChar | public int commaChar(Code) | | |
commaInterval | public int commaInterval(Code) | | |
minWidth | public int minWidth(Code) | | Minimal width of the result, includiing sign, commas, etc.
However, if the MIN_DIGITS flag is given, it's the minimum number
of digits instead. This is used for printf-style "precision".
|
padChar | public int padChar(Code) | | The padding characters, by default ' '.
|
IntegerFormat | public IntegerFormat()(Code) | | |
Methods inherited from gnu.text.ReportFormat | abstract public int format(Object[] args, int start, Writer dst, FieldPosition fpos) throws java.io.IOException(Code)(Java Doc) public int format(Object arg, int start, Writer dst, FieldPosition fpos) throws java.io.IOException(Code)(Java Doc) public StringBuffer format(Object obj, StringBuffer sbuf, FieldPosition fpos)(Code)(Java Doc) public int format(Object[] args, int start, StringBuffer sbuf, FieldPosition fpos)(Code)(Java Doc) public static int format(Format fmt, Object[] args, int start, Writer dst, FieldPosition fpos) throws java.io.IOException(Code)(Java Doc) public static int format(Format fmt, Object[] args, int start, StringBuffer sbuf, FieldPosition fpos)(Code)(Java Doc) public static int getParam(Object arg, int defaultValue)(Code)(Java Doc) protected static int getParam(int param, int defaultValue, Object[] args, int start)(Code)(Java Doc) protected static char getParam(int param, char defaultValue, Object[] args, int start)(Code)(Java Doc) public static int nextArg(int result)(Code)(Java Doc) public Object parseObject(String text, java.text.ParsePosition status)(Code)(Java Doc) public static void print(Writer dst, String str) throws java.io.IOException(Code)(Java Doc) public static void print(Object value, Consumer out)(Code)(Java Doc) public static int result(int resultCode, int nextArg)(Code)(Java Doc) public static int resultCode(int result)(Code)(Java Doc)
|
|
|