public class FormatterUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.text.SimpleDateFormat |
dateFormat |
| Constructor and Description |
|---|
FormatterUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
capitalise(java.lang.String str) |
static java.lang.String |
formatPostfix(long n)
Formats the given int/long to have a postfix (k,M,G etc.) after it.
|
static java.lang.String |
formatPostfix2(long n)
Works like
formatPostfix(long), but in base 2 (so 1ki=1024 and not 1000) |
static java.lang.String |
lastModified(java.io.File f)
Returns a formatted
String from File.lastModified() |
public static java.lang.String formatPostfix(long n)
n - the number to formatStringformatPostfix2(long)public static java.lang.String formatPostfix2(long n)
formatPostfix(long), but in base 2 (so 1ki=1024 and not 1000)formatPostfix(long)public static java.lang.String lastModified(java.io.File f)
String from File.lastModified()public static java.lang.String capitalise(java.lang.String str)