hades.utils
Class DecimalFormat

java.lang.Object
  extended byhades.utils.DecimalFormat

public class DecimalFormat
extends java.lang.Object

formatting utilities for long integer values.


Constructor Summary
DecimalFormat()
           
 
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
 

Constructor Detail

DecimalFormat

public DecimalFormat()
Method Detail

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)