|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.services.uuid.BasicUUID
public class BasicUUID
| Field Summary | |
|---|---|
private long |
majorId
|
private int |
sequence
|
private long |
timemillis
|
| Fields inherited from interface org.apache.derby.catalog.UUID |
|---|
UUID_BYTE_LENGTH |
| Constructor Summary | |
|---|---|
BasicUUID()
|
|
BasicUUID(long majorId,
long timemillis,
int sequence)
Constructor only called by BasicUUIDFactory. |
|
BasicUUID(java.lang.String uuidstring)
Constructor only called by BasicUUIDFactory. |
|
| Method Summary | |
|---|---|
UUID |
cloneMe()
Clone this UUID. |
boolean |
equals(java.lang.Object otherObject)
Implement value equality. |
int |
getTypeFormatId()
Return my format identifier. |
int |
hashCode()
Provide a hashCode which is compatible with the equals() method. |
void |
readExternal(java.io.ObjectInput in)
Read this in |
private static long |
readMSB(java.io.StringReader sr)
Read a long value, msb first, from its character representation in the string reader, using '-' or end of string to delimit. |
java.lang.String |
stringWorkhorse(char separator)
Private workhorse of the string making routines. |
java.lang.String |
toANSIidentifier()
Produce a string representation of this UUID which is suitable for use as a unique ANSI identifier. |
java.lang.String |
toString()
Produce a string representation of this UUID which can be passed to UUIDFactory.recreateUUID later on to reconstruct it. |
void |
writeExternal(java.io.ObjectOutput out)
Write this out. |
private static void |
writeMSB(char[] data,
int offset,
long value,
int nbytes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private long majorId
private long timemillis
private int sequence
| Constructor Detail |
|---|
public BasicUUID(long majorId,
long timemillis,
int sequence)
public BasicUUID(java.lang.String uuidstring)
toString()public BasicUUID()
| Method Detail |
|---|
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException - error writing to log stream
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.Externalizablejava.io.IOException - error reading from log streampublic int getTypeFormatId()
getTypeFormatId in interface TypedFormat
private static void writeMSB(char[] data,
int offset,
long value,
int nbytes)
private static long readMSB(java.io.StringReader sr)
public boolean equals(java.lang.Object otherObject)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toANSIidentifier()
toANSIidentifier in interface UUIDpublic java.lang.String stringWorkhorse(char separator)
separator - Character to separate number blocks.
Null means do not include a separator.
public UUID cloneMe()
cloneMe in interface UUID
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||