1 6 package org.logicalcobwebs.proxool; 7 8 import java.text.DecimalFormat ; 9 10 18 public class FormatHelper { 19 20 private static DecimalFormat smallNumberFormat = new DecimalFormat ("00"); 21 22 private static DecimalFormat mediumNumberFormat = new DecimalFormat ("0000"); 23 24 private static DecimalFormat bigCountFormat = new DecimalFormat ("###000000"); 25 26 31 public static String formatSmallNumber(long value) { 32 return smallNumberFormat.format(value); 33 } 34 35 40 public static String formatMediumNumber(long value) { 41 return mediumNumberFormat.format(value); 42 } 43 44 49 public static String formatBigNumber(long value) { 50 return bigCountFormat.format(value); 51 } 52 } 53 54 55 | Popular Tags |