org.logicalcobwebs.proxool
Class FormatHelper

java.lang.Object
  extended by org.logicalcobwebs.proxool.FormatHelper

public class FormatHelper
extends java.lang.Object

Formats things as Strings

Since:
Proxool 0.8
Version:
$Revision: 1.1 $, $Date: 2003/03/05 18:42:33 $
Author:
bill, $Author: billhorsman $ (current maintainer)

Field Summary
private static java.text.DecimalFormat bigCountFormat
           
private static java.text.DecimalFormat mediumNumberFormat
           
private static java.text.DecimalFormat smallNumberFormat
           
 
Constructor Summary
FormatHelper()
           
 
Method Summary
static java.lang.String formatBigNumber(long value)
          Format like ###000000
static java.lang.String formatMediumNumber(long value)
          Format like 0000
static java.lang.String formatSmallNumber(long value)
          Format like 00
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

smallNumberFormat

private static java.text.DecimalFormat smallNumberFormat

mediumNumberFormat

private static java.text.DecimalFormat mediumNumberFormat

bigCountFormat

private static java.text.DecimalFormat bigCountFormat
Constructor Detail

FormatHelper

public FormatHelper()
Method Detail

formatSmallNumber

public static java.lang.String formatSmallNumber(long value)
Format like 00

Parameters:
value - to format
Returns:
formatted value

formatMediumNumber

public static java.lang.String formatMediumNumber(long value)
Format like 0000

Parameters:
value - to format
Returns:
formatted value

formatBigNumber

public static java.lang.String formatBigNumber(long value)
Format like ###000000

Parameters:
value - to format
Returns:
formatted value