|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.didl.UUID
public final class UUID
This class implements UUID version 4. The values for the various fields are crypto random values set by the factory class UUIDFactory Development of this code was part of the aDORe repository project by the Research Library of the Los Alamos National Laboratory. This code is based on the implementation of UUID version 4 (the one that uses random/pseudo-random numbers by Ashraf Amrou of the Old Dominion University (Aug 14, 2003)
| Constructor Summary | |
|---|---|
UUID(long _hi,
long _lo)
Construct a Version 4 UUID object form the two given long values. |
|
UUID(UUID uuid)
Construct a Version 4 UUID object from another UUID object |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compare UUID objects |
int |
hashCode()
Generate a hash for the UUID |
String |
toString()
Obtain a string representation of the UUID object |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UUID(UUID uuid)
uuid - the UUID to use as a base for the new UUID
public UUID(long _hi,
long _lo)
_hi - first long value_lo - second long value| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectobj - the object to compare this UUID against
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||