hades.utils
Class DecimalFormat
java.lang.Object
hades.utils.DecimalFormat
- public class DecimalFormat
- extends java.lang.Object
formatting utilities for long integer values.
Method Summary |
static java.lang.String |
getDecimalString(long value,
int n_chars)
return a decimal-formatted String of 'value' at least 'n_chars' wide,
filling with leading spaces as necessary. |
static java.lang.String |
getDecimalStringWithCommas(long value,
int n_chars)
|
static java.lang.String |
getDecimalStringZeroes(long value,
int n_chars)
return a decimal-formatted String of 'value' at least 'n_chars' wide,
filling with leading zeroes as necessary. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecimalFormat
public DecimalFormat()
getDecimalString
public static java.lang.String getDecimalString(long value,
int n_chars)
- return a decimal-formatted String of 'value' at least 'n_chars' wide,
filling with leading spaces as necessary.
getDecimalStringZeroes
public static java.lang.String getDecimalStringZeroes(long value,
int n_chars)
- return a decimal-formatted String of 'value' at least 'n_chars' wide,
filling with leading zeroes as necessary.
getDecimalStringWithCommas
public static java.lang.String getDecimalStringWithCommas(long value,
int n_chars)