public class FormatUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
formatFraction(long part,
long total)
Formats a fraction as a "xx.x%" string.
|
static String |
formatPeriod(long periodMs) |
static String |
formatSize(long size) |
static String |
join(String separator,
Iterator<? extends Object> iter) |
static String |
join(String separator,
List<? extends Object> list) |
static String |
join(String separator,
Object[] values) |
static String |
join(String separator,
Set<? extends Object> set) |
static Locale |
parseLocale(String locale) |
public static String formatPeriod(long periodMs)
public static String formatSize(long size)
public static String formatFraction(long part, long total)
part
- int the portion of the totaltotal
- int the totalpublic static Locale parseLocale(String locale)
Copyright © 2004–2014. All rights reserved.