public static byte[] createType1() { if (type1Initialized == false) { initializeForType1();
public static byte[] createType1() { if (type1Initialized == false) { initializeForType1();
public static byte[] createType1() { if (type1Initialized == false) { initializeForType1();
/** * Get the timestamp to be used for this uuid. Must be called from * a synchronized block. * * @return long timestamp */ // package-visibility for testing static long getTime() { if (RANDOM == null) initializeForType1(); long newTime = getUUIDTime(); if (newTime <= _lastMillis) { incrementSequence(); newTime = getUUIDTime(); } _lastMillis = newTime; return newTime; }
/** * Get the timestamp to be used for this uuid. Must be called from * a synchronized block. * * @return long timestamp */ // package-visibility for testing static long getTime() { if (RANDOM == null) initializeForType1(); long newTime = getUUIDTime(); if (newTime <= _lastMillis) { incrementSequence(); newTime = getUUIDTime(); } _lastMillis = newTime; return newTime; }
/** * Get the timestamp to be used for this uuid. Must be called from * a synchronized block. * * @return long timestamp */ // package-visibility for testing static long getTime() { if (RANDOM == null) initializeForType1(); long newTime = getUUIDTime(); if (newTime <= _lastMillis) { incrementSequence(); newTime = getUUIDTime(); } _lastMillis = newTime; return newTime; }