java.lang.Object com.realtime.crossfire.jxclient.util.Formatter
public class Formatter
Utility class for formatting values into strings.
Constructor Summary | |
---|---|
private |
Formatter()
Private constructor to prevent instantiation. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private Formatter()
Method Detail |
---|
@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