io.jvm.uuid

RichUUID

final class RichUUID extends AnyVal with Ordered[UUID]

Pimp-my-library pattern, wrapping the underlying java.util.UUID.

This class extends AnyVal, making all the extension methods have little-to-no runtime overhead.

The pimp is complete through an implicit conversion in the Imports trait or the uuid package object.

Source
RichUUID.scala
Linear Supertypes
Ordered[uuid.UUID], Comparable[uuid.UUID], AnyVal, NotNull, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RichUUID
  2. Ordered
  3. Comparable
  4. AnyVal
  5. NotNull
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. def <(that: uuid.UUID): Boolean

    Definition Classes
    Ordered
  4. def <=(that: uuid.UUID): Boolean

    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def >(that: uuid.UUID): Boolean

    Definition Classes
    Ordered
  7. def >=(that: uuid.UUID): Boolean

    Definition Classes
    Ordered
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def byteArray: Array[Byte]

    Encodes this UUID as a Byte array with 16 elements.

  10. def charArray: Array[Char]

    Encodes this UUID as a Char array with 36 elements in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx format.

  11. def compare(that: uuid.UUID): Int

    This comparison allows for sanity compatible unsigned ordering

    This comparison allows for sanity compatible unsigned ordering

    Definition Classes
    RichUUID → Ordered
  12. def compareTo(that: uuid.UUID): Int

    WARNING: JVM sorts UUIDs differently to the rest of the world (languages and databases).

    WARNING: JVM sorts UUIDs differently to the rest of the world (languages and databases). This is due to default signed Long ordering and has been marked as a Will Not Fix due to legacy code: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=7025832

    Definition Classes
    RichUUID → Ordered → Comparable
  13. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  14. def intArray: Array[Int]

    Encodes this UUID as an Int array with 4 elements.

  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def leastSigBits: Long

    Returns the least significant 64 bits of this UUID.

    Returns the least significant 64 bits of this UUID.

    Annotations
    @inline()
  17. def longArray: Array[Long]

    Encodes this UUID as a Long array with 2 elements.

  18. def mostSigBits: Long

    Returns the most significant 64 bits of this UUID.

    Returns the most significant 64 bits of this UUID.

    Annotations
    @inline()
  19. def shortArray: Array[Short]

    Encodes this UUID as a Short array with 8 elements.

  20. def string: String

    Returns this UUID as a String in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx format.

    Returns this UUID as a String in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx format. Hexadecimal characters will be lower-cased. This method is an optimized drop in replacement for the legacy toString method.

  21. def toByteArray(buffer: Array[Byte], offset: Int): Unit

    Writes this UUID to the provided Byte array.

    Writes this UUID to the provided Byte array.

    Annotations
    @inline()
  22. def toCharArray(buffer: Array[Char], offset: Int): Unit

    Writes this UUID to the provided Char array in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx format.

  23. def toIntArray(buffer: Array[Int], offset: Int): Unit

    Writes this UUID to the provided Int array.

    Writes this UUID to the provided Int array.

    Annotations
    @inline()
  24. def toLongArray(buffer: Array[Long], offset: Int): Unit

    Writes this UUID to the provided Long array.

    Writes this UUID to the provided Long array.

    Annotations
    @inline()
  25. def toLowerCase: String

    Alias for string which implicitly returns a lower-cased String.

    Alias for string which implicitly returns a lower-cased String.

    Annotations
    @inline()
  26. def toShortArray(buffer: Array[Short], offset: Int): Unit

    Writes this UUID to the provided Short array.

    Writes this UUID to the provided Short array.

    Annotations
    @inline()
  27. def toString(): String

    Definition Classes
    Any
  28. def toUpperCase: String

    Returns this UUID as a String in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx format.

    Returns this UUID as a String in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx format. Hexadecimal characters will be upper-cased.

  29. val uuid: uuid.UUID

Inherited from Ordered[uuid.UUID]

Inherited from Comparable[uuid.UUID]

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Ungrouped