|
||||||||||
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
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(byte[] b)
Constructor only called by BasicUUIDFactory. |
|
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. |
byte[] |
toByteArray()
Store this UUID in a byte array. |
java.lang.String |
toHexString()
Create a hex string representation of this UUID. |
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(byte[] b)
toByteArray()
public BasicUUID()
Method Detail |
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
- error writing to log streampublic void readExternal(java.io.ObjectInput in) throws java.io.IOException
readExternal
in interface java.io.Externalizable
java.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)
public int hashCode()
public java.lang.String toString()
public java.lang.String toANSIidentifier()
toANSIidentifier
in interface UUID
public java.lang.String stringWorkhorse(char separator)
separator
- Character to separate number blocks.
Null means do not include a separator.
public byte[] toByteArray()
toByteArray
in interface UUID
UUID.toByteArray()
public UUID cloneMe()
cloneMe
in interface UUID
public java.lang.String toHexString()
UUID
toHexString
in interface UUID
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |