Class Helpers$

java.lang.Object
org.apache.pekko.util.Helpers$

public class Helpers$ extends Object
  • Field Details

    • MODULE$

      public static final Helpers$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • Helpers$

      public Helpers$()
  • Method Details

    • toRootLowerCase

      public String toRootLowerCase(String s)
    • isWindows

      public boolean isWindows()
    • makePattern

      public Pattern makePattern(String s)
    • compareIdentityHash

      public int compareIdentityHash(Object a, Object b)
    • identityHashComparator

      public <T> Comparator<T> identityHashComparator(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 &ldquo;real&rdquo; comparator is used; the comparator must be consistent with equals, otherwise it would not be an enhancement over the identityHashCode.
    • currentTimeMillisToUTCString

      public String currentTimeMillisToUTCString(long timestamp)
      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

      public String timestamp(long time)
    • base64chars

      public final String base64chars()
    • base64

      public String base64(long l, StringBuilder sb)
    • base64$default$2

      public StringBuilder base64$default$2()
    • Requiring

      public final <A> Helpers.Requiring<A> Requiring(A value)