Class UUIDGenerator


  • public class UUIDGenerator
    extends java.lang.Object
    simple generation of a UUID
    Version:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      UUIDGenerator()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void nextBytes​(byte[] into, int offset, int length, java.util.Random r)
      Same as java.util.Random.nextBytes except this one we don't have to allocate a new byte array
      static byte[] randomUUID​(boolean secure)  
      static byte[] randomUUID​(boolean secure, byte[] into, int offset)  
      • Methods inherited from class java.lang.Object

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

      • UUIDGenerator

        public UUIDGenerator()
    • Method Detail

      • randomUUID

        public static byte[] randomUUID​(boolean secure)
      • randomUUID

        public static byte[] randomUUID​(boolean secure,
                                        byte[] into,
                                        int offset)
      • nextBytes

        public static void nextBytes​(byte[] into,
                                     int offset,
                                     int length,
                                     java.util.Random r)
        Same as java.util.Random.nextBytes except this one we don't have to allocate a new byte array
        Parameters:
        into - byte[]
        offset - int
        length - int
        r - Random