public class Formatters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.text.DecimalFormat |
DEC
A formatter for displaying float values with separated digits and 3 decimal places.
|
static java.text.DecimalFormat |
DEC_SHORT
A formatter for displaying float values with 2 decimal places.
|
static java.text.DecimalFormat |
INT
A formatter for displaying integer values with separated digits.
|
static java.text.DecimalFormat |
INT_THREE
A formatter for displaying integer values with at least three digits.
|
private static java.text.DecimalFormatSymbols |
SYMBOLS
Symbols to use in the formatters, based on standards in the US locale.
|
Constructor and Description |
---|
Formatters() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatCoins(long coins)
Formats a coin value, by dividing it into silver, gold and crystal coins.
|
private static final java.text.DecimalFormatSymbols SYMBOLS
public static final java.text.DecimalFormat INT
public static final java.text.DecimalFormat INT_THREE
public static final java.text.DecimalFormat DEC
public static final java.text.DecimalFormat DEC_SHORT