public class BasicUUID extends java.lang.Object implements UUID, Formatable
| Modifier and Type | Field and Description |
|---|---|
private long |
majorId |
private int |
sequence |
private long |
timemillis |
UUID_BYTE_LENGTH| Constructor and Description |
|---|
BasicUUID() |
BasicUUID(long majorId,
long timemillis,
int sequence)
Constructor only called by BasicUUIDFactory.
|
BasicUUID(java.lang.String uuidstring)
Constructor only called by BasicUUIDFactory.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
private long majorId
private long timemillis
private int sequence
public BasicUUID(long majorId,
long timemillis,
int sequence)
public BasicUUID(java.lang.String uuidstring)
toString()public BasicUUID()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException - error writing to log streampublic 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 TypedFormatprivate 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.Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.