io.jvm.uuid

RichUUID

class RichUUID extends 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 uuid.Imports trait or the io.jvm.uuid.package package object.

Attributes
final
Source
RichUUID.scala
Linear Supertypes
Ordered[UUID], Comparable[UUID], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. RichUUID
  2. Ordered
  3. Comparable
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def < (that: UUID): Boolean

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

    Definition Classes
    Ordered
  6. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  7. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  8. def > (that: UUID): Boolean

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

    Definition Classes
    Ordered
  10. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  11. def byteArray : Array[Byte]

    Encodes this UUID as a Byte array with 16 elements.

  12. def charArray : Array[Char]

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

  13. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def compare (that: UUID): Int

    This comparison allows for sanity compatible unsigned ordering

    This comparison allows for sanity compatible unsigned ordering

    Definition Classes
    RichUUID → Ordered
  15. def compareTo (that: 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
  16. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  17. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  20. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  21. def intArray : Array[Int]

    Encodes this UUID as an Int array with 4 elements.

  22. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  23. def leastSigBits : Long

    Returns the least significant 64 bits of this UUID.

    Returns the least significant 64 bits of this UUID.

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

    Encodes this UUID as a Long array with 2 elements.

  25. def mostSigBits : Long

    Returns the most significant 64 bits of this UUID.

    Returns the most significant 64 bits of this UUID.

    Annotations
    @inline()
  26. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  27. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  28. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  29. def shortArray : Array[Short]

    Encodes this UUID as a Short array with 8 elements.

  30. 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.

  31. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  32. 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()
  33. def toCharArray (buffer: Array[Char], offset: Int): Unit

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

  34. 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()
  35. 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()
  36. 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()
  37. 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()
  38. def toString (): String

    Definition Classes
    AnyRef → Any
  39. 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.

  40. val uuid : UUID

  41. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  42. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  43. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Ordered[UUID]

Inherited from Comparable[UUID]

Inherited from AnyRef

Inherited from Any