public class ADuccId extends Object implements IDuccId
| Constructor and Description |
|---|
ADuccId(long given)
Constructor - create a UNIQUE id, presenting a specific "frienly" id as needed.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object id) |
boolean |
equals(Object obj) |
long |
getFriendly()
Return the (not unique) "friendly" id.
|
String |
getUnique() |
UUID |
getUUID() |
int |
hashCode() |
void |
setFriendly(long myFriendly)
Set a friendly id.
|
void |
setUUID(UUID unique)
Create a DuccId from a given UUID.
|
String |
toString() |
public ADuccId(long given)
given - This is the "friendly" id which may not be unique.public void setUUID(UUID unique)
unique - This is a unique ID which overrides the generated UUID from the constructor.
Use with care.public UUID getUUID()
public int compareTo(Object id)
compareTo in interface Comparablepublic long getFriendly()
getFriendly in interface IDuccIdpublic void setFriendly(long myFriendly)
myFriendly - The "friendly" id to associate with the UUID.public String getUnique()
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.