Uses of Class
java.util.UUID

Packages that useUUID
Package
Description
java.util
Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.
  • Uses ofUUID injava.util

    Classes injava.util that implement interfaces with type arguments of typeUUID
    Modifier and Type
    Class
    Description
    final class 
    A class that represents an immutable universally unique identifier (UUID).
    Methods injava.util that returnUUID
    Modifier and Type
    Method
    Description
    staticUUID
    UUID.fromString(String name)
    Creates aUUID from the string standard representation as described in thetoString() method.
    staticUUID
    UUID.nameUUIDFromBytes(byte[] name)
    Static factory to retrieve a type 3 (name based)UUID based on the specified byte array.
    staticUUID
    UUID.randomUUID()
    Static factory to retrieve a type 4 (pseudo randomly generated) UUID.
    Methods injava.util with parameters of typeUUID
    Modifier and Type
    Method
    Description
    int
    UUID.compareTo(UUID val)
    Compares this UUID with the specified UUID.