public enum AUIDGeneration extends Enum<AUIDGeneration>
Enumeration representing the different generation methods for AUIDs. These versions are the ones specified in rfc 4122 that are supported by the MAJ API.
AUIDImpl.auidFactory(AUIDGeneration, byte[]),
UUID| Enum Constant and Description |
|---|
IETF_Type1
A time-based method for UUID generation consistent with section 4.2 of rfc 4122.
|
IETF_Type3
A name-based method for UUID generation consistent with section 4.3 of rfc 4122.
|
IETF_Type4
An UUID generated from truly random or pseudo-random numbers consistent with section 4.4
of rfc 4122.
|
Namebased
A name-based method for UUID generation consistent with section 4.3 of rfc 4122.
|
Random
An UUID generated from truly random or pseudo-random numbers consistent with section 4.4
of rfc 4122.
|
Timebased
A time-based method for UUID generation consistent with section 4.2 of rfc 4122.
|
| Modifier and Type | Method and Description |
|---|---|
static AUIDGeneration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AUIDGeneration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AUIDGeneration IETF_Type1
A time-based method for UUID generation consistent with section 4.2 of rfc 4122.
The resulting UUID consists of the current date and time, as well as an identifier for the host
generating the identifier. Same as Timebased.
AUID#timebasedAUID(),
AUID#timebasedAUID(byte[])public static final AUIDGeneration Timebased
A time-based method for UUID generation consistent with section 4.2 of rfc 4122.
The resulting UUID consists of the current date and time, as well as an identifier for the host
generating the identifier. Same as IETF_Type1.
AUID#timebasedAUID(),
AUID#timebasedAUID(byte[])public static final AUIDGeneration IETF_Type3
A name-based method for UUID generation consistent with section 4.3 of rfc 4122.
Same as Namebased.
AUID#namebasedAUID(byte[])public static final AUIDGeneration Namebased
A name-based method for UUID generation consistent with section 4.3 of rfc 4122.
Same as IETF_Type3.
AUID#namebasedAUID(byte[])public static final AUIDGeneration IETF_Type4
An UUID generated from truly random or pseudo-random numbers consistent with section 4.4
of rfc 4122. Same as Random.
AUID#randomAUID()public static final AUIDGeneration Random
An UUID generated from truly random or pseudo-random numbers consistent with section 4.4
of rfc 4122. Same as IETF_Type4.
AUID#randomAUID()public static AUIDGeneration[] values()
for (AUIDGeneration c : AUIDGeneration.values()) System.out.println(c);
public static AUIDGeneration valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.