|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openscience.nmrshiftdb.util.GenerateId
public class GenerateId
Class for generating unique Identifiers
| Field Summary | |
|---|---|
private static java.lang.String |
spectrumID
|
| Constructor Summary | |
|---|---|
GenerateId()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
GenerateId()
Generates a unique identifier by generating a random number and getting its digest |
private static java.lang.String |
hexEncode(byte[] aInput)
The byte[] returned by MessageDigest does not have a nice textual representation, so some form of encoding is usually performed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static java.lang.String spectrumID
| Constructor Detail |
|---|
public GenerateId()
| Method Detail |
|---|
public static java.lang.String GenerateId()
private static java.lang.String hexEncode(byte[] aInput)
aInput - byte array build by GenerateId().
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||