public abstract class FormatUtil extends Object
| Constructor and Description |
|---|
FormatUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatBytes(long bytes)
Format bytes into a string to a rounded string representation.
|
static String |
formatHertz(long hertz)
Format hertz into a string to a rounded string representation.
|
static long |
getUnsignedInt(int x)
Convert unsigned int to signed long
|
static float |
round(float d,
int decimalPlace)
Round to certain number of decimals
|
public static String formatBytes(long bytes)
bytes - Bytes.public static String formatHertz(long hertz)
hertz - Hertz.public static float round(float d,
int decimalPlace)
d - decimalPlace - public static long getUnsignedInt(int x)
x - Copyright © 2010-2015 com.github.dblock. All Rights Reserved.