public class Helpers
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Helpers.ConfigOps
INTERNAL API
|
static class |
Helpers.ConfigOps$ |
static class |
Helpers.Requiring<A>
Implicit class providing
requiring methods. |
static class |
Helpers.Requiring$ |
| Constructor and Description |
|---|
Helpers() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
base64(long l,
java.lang.StringBuilder sb) |
static java.lang.String |
base64chars() |
static int |
compareIdentityHash(java.lang.Object a,
java.lang.Object b) |
static java.lang.String |
currentTimeMillisToUTCString(long timestamp)
Converts a "currentTimeMillis"-obtained timestamp accordingly:
|
static <T> java.util.Comparator<T> |
identityHashComparator(java.util.Comparator<T> comp)
Create a comparator which will efficiently use
System.identityHashCode,
unless that happens to be the same for two non-equals objects, in which
case the supplied “real” comparator is used; the comparator must be
consistent with equals, otherwise it would not be an enhancement over
the identityHashCode. |
static boolean |
isWindows() |
static java.util.regex.Pattern |
makePattern(java.lang.String s) |
public static boolean isWindows()
public static java.util.regex.Pattern makePattern(java.lang.String s)
public static int compareIdentityHash(java.lang.Object a,
java.lang.Object b)
public static <T> java.util.Comparator<T> identityHashComparator(java.util.Comparator<T> comp)
System.identityHashCode,
unless that happens to be the same for two non-equals objects, in which
case the supplied “real” comparator is used; the comparator must be
consistent with equals, otherwise it would not be an enhancement over
the identityHashCode.comp - (undocumented)public static java.lang.String currentTimeMillisToUTCString(long timestamp)
"$hours%02d:$minutes%02d:$seconds%02d.$ms%03dUTC"
timestamp - a "currentTimeMillis"-obtained timestamppublic static final java.lang.String base64chars()
public static java.lang.String base64(long l,
java.lang.StringBuilder sb)