|
static String | format (Number value, String pattern) |
|
static String | format (Number value) |
|
static String | format (double value, String pattern) |
|
static String | format (double value) |
|
static String | format (long value, String pattern) |
|
static String | format (long value) |
|
static String | formatCurrency (double value) |
|
static String | formatPercent (double value) |
|
static String | getStringFormat (int fractionDigits) |
|
◆ format() [1/6]
static String org.turro.elephant.util.DecimalFormats.format |
( |
double |
value | ) |
|
|
static |
Definition at line 44 of file DecimalFormats.java.
45 return DecimalFormat.getNumberInstance(Application.getUsedLocale()).format(value);
◆ format() [2/6]
static String org.turro.elephant.util.DecimalFormats.format |
( |
double |
value, |
|
|
String |
pattern |
|
) |
| |
|
static |
Definition at line 40 of file DecimalFormats.java.
41 return new DecimalFormat(pattern,
new DecimalFormatSymbols(Application.getUsedLocale())).format(value);
◆ format() [3/6]
static String org.turro.elephant.util.DecimalFormats.format |
( |
long |
value | ) |
|
|
static |
Definition at line 52 of file DecimalFormats.java.
53 return DecimalFormat.getIntegerInstance(Application.getUsedLocale()).format(value);
◆ format() [4/6]
static String org.turro.elephant.util.DecimalFormats.format |
( |
long |
value, |
|
|
String |
pattern |
|
) |
| |
|
static |
Definition at line 48 of file DecimalFormats.java.
49 return new DecimalFormat(pattern,
new DecimalFormatSymbols(Application.getUsedLocale())).format(value);
◆ format() [5/6]
static String org.turro.elephant.util.DecimalFormats.format |
( |
Number |
value | ) |
|
|
static |
Definition at line 35 of file DecimalFormats.java.
36 if(value ==
null)
return null;
37 return DecimalFormat.getNumberInstance(Application.getUsedLocale()).format(value);
◆ format() [6/6]
static String org.turro.elephant.util.DecimalFormats.format |
( |
Number |
value, |
|
|
String |
pattern |
|
) |
| |
|
static |
Definition at line 30 of file DecimalFormats.java.
31 if(value ==
null)
return null;
32 return new DecimalFormat(pattern,
new DecimalFormatSymbols(Application.getUsedLocale())).format(value);
◆ formatCurrency()
static String org.turro.elephant.util.DecimalFormats.formatCurrency |
( |
double |
value | ) |
|
|
static |
Definition at line 56 of file DecimalFormats.java.
57 return DecimalFormat.getCurrencyInstance(Application.getUsedLocale()).format(value);
◆ formatPercent()
static String org.turro.elephant.util.DecimalFormats.formatPercent |
( |
double |
value | ) |
|
|
static |
Definition at line 60 of file DecimalFormats.java.
61 return DecimalFormat.getPercentInstance(Application.getUsedLocale()).format(value);
◆ getStringFormat()
static String org.turro.elephant.util.DecimalFormats.getStringFormat |
( |
int |
fractionDigits | ) |
|
|
static |
Definition at line 64 of file DecimalFormats.java.
65 StringBuilder sb =
new StringBuilder(
"#,##0");
66 if(fractionDigits > 0) {
68 for(
int i = 0; i < fractionDigits; i++) {
The documentation for this class was generated from the following file: