public class IntegerFormat extends ReportFormat
| Modifier and Type | Field and Description |
|---|---|
int |
base |
int |
commaChar |
int |
commaInterval |
int |
flags |
static int |
MIN_DIGITS
The minWidth is minimum number of digits, not minimum total width.
|
int |
minWidth
Minimal width of the result, including sign, commas, etc.
|
static int |
PAD_RIGHT |
int |
padChar
The padding characters, by default ' '.
|
static int |
SHOW_BASE
Add "0x" (hex) or "0" (octal) prefix.
|
static int |
SHOW_GROUPS
Do groups (for example thousands, using commas).
|
static int |
SHOW_PLUS
If value is non-negative, emit a '+'.
|
static int |
SHOW_SPACE
If value is non-negative, emit an initial ' '.
|
static int |
UPPERCASE |
PARAM_FROM_COUNT, PARAM_FROM_LIST, PARAM_UNSPECIFIED| Constructor and Description |
|---|
IntegerFormat() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertToIntegerString(java.lang.Object x,
int radix) |
int |
format(java.lang.Object[] args,
int start,
java.lang.Appendable dst,
java.text.FieldPosition fpos)
Format an array of arguments, and write out the result.
|
int |
format(java.lang.Object arg,
int start,
java.lang.Appendable dst,
java.text.FieldPosition fpos) |
format, format, format, format, getParam, getParam, getParam, nextArg, parseObject, print, print, result, resultCodepublic int base
public int minWidth
public int padChar
public int commaChar
public int commaInterval
public int flags
public static final int SHOW_GROUPS
public static final int SHOW_PLUS
public static final int SHOW_SPACE
public static final int SHOW_BASE
public static final int PAD_RIGHT
public static final int UPPERCASE
public static final int MIN_DIGITS
public int format(java.lang.Object[] args,
int start,
java.lang.Appendable dst,
java.text.FieldPosition fpos)
throws java.io.IOException
ReportFormatformat in class ReportFormatargs - the objects to be formattedstart - the index (in args) of the argument to start withdst - where to write the resultjava.io.IOExceptionpublic int format(java.lang.Object arg,
int start,
java.lang.Appendable dst,
java.text.FieldPosition fpos)
throws java.io.IOException
format in class ReportFormatjava.io.IOExceptionpublic java.lang.String convertToIntegerString(java.lang.Object x,
int radix)