|
|||||||||
| Home >> All >> org >> apache >> ws >> util >> uuid >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.ws.util.uuid.impl
Class FastUuidGenerator

java.lang.Objectorg.apache.ws.util.uuid.impl.FastUuidGenerator
- All Implemented Interfaces:
- org.apache.ws.util.uuid.UuidGenerator
- public class FastUuidGenerator
- extends java.lang.Object
- implements org.apache.ws.util.uuid.UuidGenerator
- extends java.lang.Object
Creates time-based UUID's. See the UUID Internet Draft for details.
| Field Summary | |
private long |
m_lastTime
|
private static int |
s_clockSequence
|
private static java.lang.String |
s_nodeStr
|
private static java.util.Random |
s_secureRandom
|
| Constructor Summary | |
FastUuidGenerator()
|
|
| Method Summary | |
java.lang.String |
generateUuid()
Generate a Universally Unique IDentifier (UUID). |
private static long |
getBitsValue(long value,
int startBit,
int bitLen)
|
private static int |
getClockSequence()
|
private static java.lang.String |
getNodeHexValue()
|
private static java.lang.String |
leftZeroPadString(java.lang.String bitString,
int len)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
s_secureRandom
private static java.util.Random s_secureRandom
s_nodeStr
private static java.lang.String s_nodeStr
s_clockSequence
private static int s_clockSequence
m_lastTime
private long m_lastTime
| Constructor Detail |
FastUuidGenerator
public FastUuidGenerator()
| Method Detail |
generateUuid
public java.lang.String generateUuid()
- Description copied from interface:
org.apache.ws.util.uuid.UuidGenerator - Generate a Universally Unique IDentifier (UUID).
- Specified by:
generateUuidin interfaceorg.apache.ws.util.uuid.UuidGenerator
getNodeHexValue
private static java.lang.String getNodeHexValue()
getClockSequence
private static int getClockSequence()
getBitsValue
private static long getBitsValue(long value,
int startBit,
int bitLen)
leftZeroPadString
private static final java.lang.String leftZeroPadString(java.lang.String bitString, int len)
|
|||||||||
| Home >> All >> org >> apache >> ws >> util >> uuid >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.ws.util.uuid.impl.FastUuidGenerator