E
- the generic type of the identified entity.public abstract class AbstractId<E> extends Object implements Id<E>
Id
.Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private Class<E> |
type |
ID_UUID, VERSION_LATEST, VERSION_SEPARATOR
Modifier | Constructor and Description |
---|---|
protected |
AbstractId()
The constructor.
|
|
AbstractId(Class<E> type)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Class<E> |
getType() |
int |
hashCode() |
protected static UUID |
parseUuid(String idString) |
String |
toString()
|
protected void |
toString(StringBuilder buffer) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getUuid, getVersion, withLatestVersion, withType
private static final long serialVersionUID
public String toString()
Datatype
String
representation of this Datatype
. While the general contract of
Object.toString()
is very weak and mainly used for debugging, the contract here is very strong. The
returned String
has to be suitable for end-users and official output to any kind of sink. NlsMessage
for
this purpose and implement NlsObject
if you want to support I18N/L10N.toString
in interface Id<E>
toString
in interface Datatype
toString
in class Object
String
representation of this Id
. Will consist of object-id
,
type
and revision
separated with a specific separator. Segments
that are null
will typically be omitted in the String
representation.protected void toString(StringBuilder buffer)
buffer
- the StringBuilder
where to append
the string
representation to.toString()
Copyright © 2001–2016 mmm-Team. All rights reserved.