Uses of Class
java.util.UUID
| 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 of UUID in java.util
Methods in java.util that return UUID Modifier and Type Method Description static UUIDUUID. fromString(String name)Creates aUUIDfrom the string standard representation as described in thetoString()method.static UUIDUUID. nameUUIDFromBytes(byte[] name)Static factory to retrieve a type 3 (name based)UUIDbased on the specified byte array.static UUIDUUID. randomUUID()Static factory to retrieve a type 4 (pseudo randomly generated) UUID.