public abstract class BaseId extends Object implements Id, Serializable
Modifier and Type | Field and Description |
---|---|
protected static String |
UNDEFINED_VALUE |
Modifier | Constructor and Description |
---|---|
protected |
BaseId(String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getValue()
String representation of the identifier.
|
int |
hashCode() |
boolean |
isUndefined()
Returns whether the identifier represents an undefined id.
|
String |
toString() |
BaseId |
withValue(String value)
Returns a new id of the same type with the given value.
|
protected static final String UNDEFINED_VALUE
protected BaseId(String value)
public String getValue()
Id
public boolean isUndefined()
Id
isUndefined
in interface Id
public BaseId withValue(String value)
Id
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.