public class StringUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
EMPTY_STRING_ARRAY |
protected static double[] |
timeFactors |
protected static String[] |
timeUnites |
| Constructor and Description |
|---|
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convert(long value,
double[] factors,
String[] unites)
Note: this method use the current locale
(the
Locale.getDefault()) in the method
MessageFormat.MessageFormat(String). |
static String |
convertTime(long value)
Converts an time delay into a human readable format.
|
public static final String[] EMPTY_STRING_ARRAY
protected static final double[] timeFactors
protected static final String[] timeUnites
public static String convertTime(long value)
value - the delay to convertconvert(long, double[], String[])public static String convert(long value, double[] factors, String[] unites)
Locale.getDefault()) in the method
MessageFormat.MessageFormat(String).value - value to convertfactors - facotrs used form conversionunites - libelle of unites to useCopyright © 2008–2017 Ultreia.io. All rights reserved.