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