public class RandomID extends Object implements Identifiable
The purpose of this class is to be extended by more complex objects that require a UUID.
This implementation will have a random UUID by default that can be explicitly set if need be.
| Constructor and Description |
|---|
RandomID() |
| Modifier and Type | Method and Description |
|---|---|
UniqueIdentifier |
getID()
get the Identifier
|
void |
setID(UniqueIdentifier id)
Set the Identifier making it non-random
|
public void setID(UniqueIdentifier id)
setID in interface Identifiablepublic UniqueIdentifier getID()
This will be a random UUID unless explicitly set
UUID This is a technical identifier that is used for system purposes such as matching. If a suitable internal key is not available, a UUID MAY be used.
getID in interface IdentifiableCopyright © 2021. All rights reserved.