public class Utils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Utils.DurationFormatPrecision |
| Modifier and Type | Method and Description |
|---|---|
static String |
applySedRegularExpression(String text,
String regex)
A "sed -e" like reg exp, of the form:
- /regexp/flags: find and output the matches. |
static boolean |
equals(Object o1,
Object o2) |
static String |
formatDateGMT(Date date) |
static String |
formatDateTimeGMT(Date date) |
static String |
formatDateTimeTZ(Date date) |
static String |
formatDuration(long duration) |
static String |
formatDuration(long duration,
Utils.DurationFormatPrecision precision) |
static String |
getFormattedSql(String text) |
public static String formatDuration(long duration)
public static String formatDuration(long duration, Utils.DurationFormatPrecision precision)
public static String applySedRegularExpression(String text, String regex)
Copyright © 2013. All Rights Reserved.