water
Class PrettyPrint
java.lang.Object
water.PrettyPrint
public class PrettyPrint
- extends java.lang.Object
Field Summary |
static java.lang.String[] |
SCALE
|
Method Summary |
static java.lang.String |
bytes(long bytes)
|
static java.lang.String |
bytes(long bytes,
int scale)
|
static int |
byteScale(long bytes)
|
static java.lang.String |
bytesPerSecond(long bytes)
|
static double |
bytesScaled(long bytes,
int scale)
|
static java.lang.String |
msecs(long msecs,
boolean truncate)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCALE
public static final java.lang.String[] SCALE
PrettyPrint
public PrettyPrint()
msecs
public static java.lang.String msecs(long msecs,
boolean truncate)
byteScale
public static int byteScale(long bytes)
bytesScaled
public static double bytesScaled(long bytes,
int scale)
bytes
public static java.lang.String bytes(long bytes)
bytes
public static java.lang.String bytes(long bytes,
int scale)
bytesPerSecond
public static java.lang.String bytesPerSecond(long bytes)