public class Helpers$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Helpers$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Helpers$() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
base64(long l,
java.lang.StringBuilder sb) |
java.lang.String |
base64chars() |
int |
compareIdentityHash(java.lang.Object a,
java.lang.Object b) |
java.lang.String |
currentTimeMillisToUTCString(long timestamp)
Converts a "currentTimeMillis"-obtained timestamp accordingly:
|
<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. |
boolean |
isWindows() |
java.util.regex.Pattern |
makePattern(java.lang.String s) |
java.lang.String |
toRootLowerCase(java.lang.String s) |
public static final Helpers$ MODULE$
public java.lang.String toRootLowerCase(java.lang.String s)
public boolean isWindows()
public java.util.regex.Pattern makePattern(java.lang.String s)
public int compareIdentityHash(java.lang.Object a, java.lang.Object b)
public <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 java.lang.String currentTimeMillisToUTCString(long timestamp)
"$hours%02d:$minutes%02d:$seconds%02d.$ms%03dUTC"
timestamp
- a "currentTimeMillis"-obtained timestamppublic final java.lang.String base64chars()
public java.lang.String base64(long l, java.lang.StringBuilder sb)