public final class BeatId extends BaseId implements EntityId
Modifier and Type | Field and Description |
---|---|
static BeatId |
UNDEFINED
A type-safe and null-safe undefined beat id.
|
UNDEFINED_VALUE
Modifier and Type | Method and Description |
---|---|
static BeatId |
from(Id id)
Returns a type-safe beat id for the specified id or null if the given id is null.
|
static BeatId |
from(Identifiable<?> identifiable)
Returns a type-safe beat id derived from the id of the specified identifiable or null if the id of the identifiable is null.
|
static BeatId |
get(String value)
Returns a type-safe beat id for the specified value.
|
static BeatId |
nullSafeGet(String value)
Returns a type-safe beat id for the specified value or null if the given value is null.
|
BeatId |
withValue(String value)
Returns a new beat id with the given value.
|
equals, getValue, hashCode, isUndefined, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getValue, isUndefined
public static final BeatId UNDEFINED
public static BeatId get(String value)
value
- the value that represents the beat idpublic static BeatId nullSafeGet(String value)
value
- the value that represents the beat id or nullpublic static BeatId from(Id id)
id
- the id from which to derive the beat idpublic static BeatId from(Identifiable<?> identifiable)
identifiable
- the identifiable whose id is taken to derive the beat idCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.