|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.mdr.persistence.MOFID
public final class MOFID
MOFID implemented as a UUID for the repository plus a long for the ID.
Field Summary | |
---|---|
static int |
LENGTH
|
static int |
STRING_LENGTH
|
Constructor Summary | |
---|---|
MOFID(long serialNumber,
java.lang.String storageId)
This constructor is just for internal use by storage to create MOFID after deserialization and should be newer called by user code. |
|
MOFID(Storage storage)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
compare MOFIDs as values |
static void |
fromLong(long value,
char[] buffer,
int offset)
Convert long to 16 hex digits, to be placed in a character array. |
static MOFID |
fromString(java.lang.String mofId)
|
long |
getSerialNumber()
get the serial number |
java.lang.String |
getStorageID()
Getter for storage ID. |
int |
hashCode()
MOFIDs with equal values will hash equal |
static java.lang.String |
makeString(java.lang.String prefix,
long id)
Construct the external form of a MOFID |
java.lang.String |
toString()
Convert to external form. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int LENGTH
public static final int STRING_LENGTH
Constructor Detail |
---|
public MOFID(Storage storage)
public MOFID(long serialNumber, java.lang.String storageId)
Method Detail |
---|
public long getSerialNumber()
public java.lang.String getStorageID()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static java.lang.String makeString(java.lang.String prefix, long id)
public java.lang.String toString()
toString
in class java.lang.Object
public static void fromLong(long value, char[] buffer, int offset)
value
- value to convert to hex digitsbuffer
- array into which to place hex digitsbeginning
- offset in arraypublic static MOFID fromString(java.lang.String mofId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |