Class UUID


  • public final class UUID
    extends java.lang.Object
    This class implements a version 4 (random) UUID, conforming to RFC4122.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String createUUID()
      This function creates a version 4 (random) UUID, conforming to RFC4122, like "uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6".
      • Methods inherited from class java.lang.Object

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

      • createUUID

        public static java.lang.String createUUID()
        This function creates a version 4 (random) UUID, conforming to RFC4122, like "uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6".
        Returns:
        a string containing the hex-encoded UUID.