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