Package org.apache.pekko.util
Class Helpers$
java.lang.Object
org.apache.pekko.util.Helpers$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbase64(long l, StringBuilder sb) final StringintcompareIdentityHash(Object a, Object b) currentTimeMillisToUTCString(long timestamp) Converts a "currentTimeMillis"-obtained timestamp accordingly:<T> Comparator<T>identityHashComparator(Comparator<T> comp) Create a comparator which will efficiently useSystem.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.booleanfinal <A> Helpers.Requiring<A>Requiring(A value) timestamp(long time)
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Helpers$
public Helpers$()
-
-
Method Details
-
toRootLowerCase
-
isWindows
public boolean isWindows() -
makePattern
-
compareIdentityHash
-
identityHashComparator
Create a comparator which will efficiently useSystem.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. -
currentTimeMillisToUTCString
Converts a "currentTimeMillis"-obtained timestamp accordingly:"$hours%02d:$minutes%02d:$seconds%02d.$ms%03dUTC"- Parameters:
timestamp- a "currentTimeMillis"-obtained timestamp- Returns:
- the formatted timestamp
-
timestamp
-
base64chars
-
base64
-
base64$default$2
-
Requiring
-