Common
Class Format

java.lang.Object
  |
  +--Common.Format

public class Format
extends java.lang.Object


Constructor Summary
Format()
           
 
Method Summary
static java.lang.String bytesToIP(byte[] ipBytes)
           
static java.lang.String doubleFormatKill(double value, int decimals, int killDecimals)
           
static byte[] IPtoBytes(java.lang.String ip)
           
static java.lang.String zeroPadded(long value, int width)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

Format

public Format()
Method Detail

doubleFormatKill

public static java.lang.String doubleFormatKill(double value,
                                                int decimals,
                                                int killDecimals)
Parameters:
killDecimals - If value is larger than killDecimals all decimals are removed.

zeroPadded

public static java.lang.String zeroPadded(long value,
                                          int width)

IPtoBytes

public static byte[] IPtoBytes(java.lang.String ip)

bytesToIP

public static java.lang.String bytesToIP(byte[] ipBytes)