@Retention(value=RUNTIME) @Target(value=METHOD) @Repeatable(value=EntityIDs.class) public @interface EntityID
Entity
type annotation to represent a UUID
. UUID.UUID(long, long)
, UUID.fromString(String)
and UUID.randomUUID()
.Functions.toIDSupplier(EntityID)
Modifier and Type | Fields and Description |
---|---|
static long |
DEFAULT_LEAST_SIG_BITS
Default last significant bits (
0L ). |
static long |
DEFAULT_MOST_SIG_BITS
Default most significant bits (
0L ). |
static java.lang.String |
DEFAULT_NAME
Default name (
"" ). |
static boolean |
DEFAULT_RANDOM
Default random (
false ). |
Modifier and Type | Optional Element and Description |
---|---|
long |
leastSigBits
The least significant bits.
|
long |
mostSigBits
The most significant bits.
|
java.lang.String |
name
String representation of the ID.
|
boolean |
random
Whether the ID should be random.
|
public static final long DEFAULT_LEAST_SIG_BITS
0L
).public static final long DEFAULT_MOST_SIG_BITS
0L
).public abstract long leastSigBits
DEFAULT_LEAST_SIG_BITS
public abstract long mostSigBits
DEFAULT_MOST_SIG_BITS
public abstract java.lang.String name
DEFAULT_NAME
public abstract boolean random
DEFAULT_RANDOM