public final class UserId extends BaseId
Modifier and Type | Field and Description |
---|---|
static UserId |
UNDEFINED
A type-safe and null-safe undefined user id.
|
UNDEFINED_VALUE
Modifier and Type | Method and Description |
---|---|
static UserId |
from(Id id)
Returns a type-safe user id for the specified id or null if the given id is null.
|
static UserId |
from(Identifiable<?> identifiable)
Returns a type-safe user id derived from the id of the specified identifiable or null if the id of the identifiable is null.
|
static UserId |
get(String value)
Returns a type-safe user id for the specified value.
|
static UserId |
nullSafeGet(String value)
Returns a type-safe user id for the specified value or null if the given value is null.
|
UserId |
withValue(String value)
Returns a new user-id with the given value.
|
public static final UserId UNDEFINED
public static UserId get(String value)
value
- the value that represents the user idpublic static UserId nullSafeGet(String value)
value
- the value that represents the user id or nullpublic static UserId from(Id id)
id
- the id from which to derive the user idpublic static UserId from(Identifiable<?> identifiable)
identifiable
- the identifiable whose id is taken to derive the user idCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.