public class PrettyPrint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static long[] |
powers10i |
Constructor and Description |
---|
PrettyPrint() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
bytes(long bytes) |
static java.lang.String |
bytesPerSecond(long bytes) |
static boolean |
fitsIntoInt(double d) |
static java.lang.String |
formatPct(double pct) |
static java.lang.String |
msecs(long msecs,
boolean truncate) |
static java.lang.String |
number(Chunk chk,
double d,
int precision) |
static double |
pow10(int exp) |
static long |
pow10i(int exp) |
static java.lang.String |
toAge(java.util.Date from,
java.util.Date to) |
static java.lang.String |
usecs(long usecs) |
static java.lang.String |
UUID(long lo,
long hi) |
static java.lang.String |
withOrdinalIndicator(long i)
This method takes a number, and returns the
string form of the number with the proper
ordinal indicator attached (e.g.
|
public static java.lang.String msecs(long msecs, boolean truncate)
public static java.lang.String usecs(long usecs)
public static java.lang.String toAge(java.util.Date from, java.util.Date to)
public static java.lang.String bytes(long bytes)
public static java.lang.String bytesPerSecond(long bytes)
public static double pow10(int exp)
public static long pow10i(int exp)
public static final boolean fitsIntoInt(double d)
public static java.lang.String UUID(long lo, long hi)
public static java.lang.String number(Chunk chk, double d, int precision)
public static java.lang.String formatPct(double pct)
public static java.lang.String withOrdinalIndicator(long i)
i
- - number to have ordinal indicator attached