Class ID


  • public class ID
    extends java.lang.Object
    Author:
    J. H. S.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int generateInt()  
      static long generateLong()  
      static long getGlobalProcessID()
      Gets a process ID that is nearly guaranteed to be globally unique.
      static java.lang.String getHexString​(byte[] bytes)  
      static byte[] getMD5Bytes​(java.lang.String content)  
      static int random​(int min, int max)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • generateLong

        public static long generateLong()
      • generateInt

        public static int generateInt()
      • getMD5Bytes

        public static byte[] getMD5Bytes​(java.lang.String content)
      • getHexString

        public static java.lang.String getHexString​(byte[] bytes)
      • getGlobalProcessID

        public static long getGlobalProcessID()
        Gets a process ID that is nearly guaranteed to be globally unique.
      • random

        public static int random​(int min,
                                 int max)