Packages

trait IzUUIDImpl extends IzUUID

The goods are here: www.ietf.org/rfc/rfc4122.txt.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IzUUIDImpl
  2. IzUUID
  3. IzPlatformEffectfulUtil
  4. IzPlatformUtil
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final val Zero: UUID
    Definition Classes
    IzUUID
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def decompose(uuid: UUID): Array[Byte]

    decomposes a uuid into raw bytes.

    decomposes a uuid into raw bytes.

    Definition Classes
    IzUUIDImplIzUUID
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. def generateTimeUUID(): UUID

    Creates a type 1 UUID (time-based UUID).

    Creates a type 1 UUID (time-based UUID).

    returns

    a UUID instance

    Definition Classes
    IzUUIDImplIzUUID
  12. def generateTimeUUIDBytes(): Array[Byte]

    Returns a 16 byte representation of a type 1 UUID (a time-based UUID), based on the current system time.

    Returns a 16 byte representation of a type 1 UUID (a time-based UUID), based on the current system time.

    returns

    a type 1 UUID represented as a byte[]

    Definition Classes
    IzUUIDImplIzUUID
  13. def getAdjustedTimestamp(uuid: UUID): Long

    Returns a milliseconds-since-epoch value for a type-1 UUID.

    Returns a milliseconds-since-epoch value for a type-1 UUID.

    uuid

    a type-1 (time-based) UUID

    returns

    the number of milliseconds since the unix epoch

    Definition Classes
    IzUUIDImplIzUUID
    Exceptions thrown

    IllegalArgumentException if the UUID is not version 1

  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def getRandomTimeUUIDFromMicros(whenInMicros: Long): UUID

    Similar to getTimeUUIDFromMicros, but randomize (using SecureRandom) the clock and sequence.

    Similar to getTimeUUIDFromMicros, but randomize (using SecureRandom) the clock and sequence.

    If you can guarantee that the whenInMicros argument is unique (for this JVM instance) for every call, then you should prefer getTimeUUIDFromMicros which is faster. If you can't guarantee this however, this method will ensure the returned UUID are still unique (accross calls) through randomization.

    whenInMicros

    a unix time in microseconds.

    returns

    a new UUID { @code id} such that { @code microsTimestamp(id) == whenInMicros}. The UUID returned by different calls will be unique even if { @code whenInMicros} is not.

    Definition Classes
    IzUUIDImplIzUUID
  16. def getTimeUUID(when: Long, nanos: Long, clockSeqAndNode: Long): UUID
    Definition Classes
    IzUUIDImplIzUUID
  17. def getTimeUUID(when: Long, nanos: Long): UUID
    Definition Classes
    IzUUIDImplIzUUID
  18. def getTimeUUID(when: Long): UUID

    Creates a type 1 UUID (time-based UUID) with the timestamp of @param when, in milliseconds.

    Creates a type 1 UUID (time-based UUID) with the timestamp of @param when, in milliseconds.

    returns

    a UUID instance

    Definition Classes
    IzUUIDImplIzUUID
  19. def getTimeUUIDBytes(timeMillis: Long, nanos: Int): Array[Byte]

    Converts a 100-nanoseconds precision timestamp into the 16 byte representation of a type 1 UUID (a time-based UUID).

    Converts a 100-nanoseconds precision timestamp into the 16 byte representation of a type 1 UUID (a time-based UUID).

    To specify a 100-nanoseconds precision timestamp, one should provide a milliseconds timestamp and a number 0 <= n < 10000 such that n*100 is the number of nanoseconds within that millisecond.

    Warning: This method is not guaranteed to return unique UUIDs; Multiple invocations using identical timestamps will result in identical UUIDs.

    returns

    a type 1 UUID represented as a byte[]

    Definition Classes
    IzUUIDImplIzUUID
  20. def getTimeUUIDBytes(timeMillis: Long): Array[Byte]

    Converts a milliseconds-since-epoch timestamp into the 16 byte representation of a type 1 UUID (a time-based UUID).

    Converts a milliseconds-since-epoch timestamp into the 16 byte representation of a type 1 UUID (a time-based UUID).

    Deprecated: This method goes again the principle of a time UUID and should not be used. For queries based on timestamp, minTimeUUID() and maxTimeUUID() can be used but this method has questionable usefulness. This is only kept because CQL2 uses it (see TimeUUID.fromStringCQL2) and we don't want to break compatibility.

    Warning: This method is not guaranteed to return unique UUIDs; Multiple invocations using identical timestamps will result in identical UUIDs.

    returns

    a type 1 UUID represented as a byte[]

    Definition Classes
    IzUUIDImplIzUUID
  21. def getTimeUUIDFromMicros(whenInMicros: Long): UUID

    Returns a version 1 UUID using the provided timestamp and the local clock and sequence.

    Returns a version 1 UUID using the provided timestamp and the local clock and sequence.

    Note that this method is generally only safe to use if you can guarantee that the provided parameter is unique across calls (otherwise the returned UUID won't be unique accross calls).

    whenInMicros

    a unix time in microseconds.

    returns

    a new UUID { @code id} such that { @code microsTimestamp(id) == whenInMicros}. Please not that multiple calls to this method with the same value of { @code whenInMicros} will return the same UUID.

    Definition Classes
    IzUUIDImplIzUUID
  22. def getUUID(raw: ByteBuffer): UUID

    creates a type 1 uuid from raw bytes.

    creates a type 1 uuid from raw bytes.

    Definition Classes
    IzUUIDImplIzUUID
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def maxTimeUUID(timestamp: Long): UUID

    Returns the biggest possible type 1 UUID having the provided timestamp.

    Returns the biggest possible type 1 UUID having the provided timestamp.

    Warning: this method should only be used for querying as this doesn't at all guarantee the uniqueness of the resulting UUID.

    Definition Classes
    IzUUIDImplIzUUID
  26. def microsTimestamp(uuid: UUID): Long

    returns

    microseconds since Unix epoch

    Definition Classes
    IzUUIDImplIzUUID
  27. def minTimeUUID(timestamp: Long): UUID

    Returns the smaller possible type 1 UUID having the provided timestamp.

    Returns the smaller possible type 1 UUID having the provided timestamp.

    Warning: this method should only be used for querying as this doesn't at all guarantee the uniqueness of the resulting UUID.

    Definition Classes
    IzUUIDImplIzUUID
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. def unixTimestamp(uuid: UUID): Long

    returns

    milliseconds since Unix epoch

    Definition Classes
    IzUUIDImplIzUUID
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from IzUUID

Inherited from IzPlatformUtil

Inherited from AnyRef

Inherited from Any

Ungrouped