public abstract class FormatUtils
extends java.lang.Object
| Constructor and Description |
|---|
FormatUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
byteSizeToString(long size)
Converts a byte size to a human readable string,
for example "3 MiB", "1020 Bytes" or "1.2 GiB".
|
@NonNull public static java.lang.String byteSizeToString(long size)
size - The byte size to convert.