|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.imcode.util.HumanReadable
public class HumanReadable
Utilities for preparing data for human consumption.
Constructor Summary | |
---|---|
HumanReadable()
|
Method Summary | |
---|---|
static java.lang.String |
getHumanReadableByteSize(long size)
Format a byte size like for example "1 kB" or "1.5 MB". |
static java.lang.String |
getHumanReadableTimeSpan(long milliseconds)
Format a time span like for example "3h, 4m, 5s, 60ms" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HumanReadable()
Method Detail |
---|
public static java.lang.String getHumanReadableByteSize(long size)
size
- The size to be formatted
public static java.lang.String getHumanReadableTimeSpan(long milliseconds)
milliseconds
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |