public class Formatter
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
Formatter()
Private constructor to prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatFloat(double value,
int digits)
Formats a float value for display.
|
static java.lang.String |
formatLong(long value)
Returns a
long value formatted as a human readable string. |
@NotNull public static java.lang.String formatFloat(double value, int digits)
value
- the float valuedigits
- the number of fraction digits; must be between 1..3
inclusive@NotNull public static java.lang.String formatLong(long value)
long
value formatted as a human readable string.value
- the value