Packages

  • package root
    Definition Classes
    root
  • package io
    Definition Classes
    root
  • package jvm
    Definition Classes
    io
  • package uuid

    This package holds the optimized Scala wrapper for java.util.UUID.

    This package holds the optimized Scala wrapper for java.util.UUID.

    To use the wrapper, either extend the Imports trait or import this package object to bring the implicit into scope that way:

    scala> import io.jvm.uuid._
    import io.jvm.uuid._
    
    scala> val foo = classOf[UUID]
    foo: Class[io.jvm.uuid.UUID] = class java.util.UUID
    
    scala> val bar = UUID(1, 2)
    bar: io.jvm.uuid.UUID = 00000000-0000-0001-0000-000000000002
    
    scala> val UUID(baz) = "00112233-4455-6677-8899-aAbBcCdDeEfF"
    baz: io.jvm.uuid.UUID = 00112233-4455-6677-8899-aabbccddeeff
    Definition Classes
    jvm
  • Imports
  • RichUUID
  • StaticUUID

class StaticUUID extends AnyRef

This class holds all static forwarders and UUID factories.

Extend this class from the client code in order to add new functionality to the library.

Source
StaticUUID.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StaticUUID
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StaticUUID()

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 def apply(uuid: String, strict: Boolean): uuid.UUID

    Allows for parsing using the legacy, non-strict parser used in java.util.UUID.fromString

    Allows for parsing using the legacy, non-strict parser used in java.util.UUID.fromString

    Annotations
    @inline()
  5. final def apply(uuid: String): uuid.UUID

    Creates a new UUID by parsing a String in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx format.

  6. final def apply(buffer: Array[Char]): uuid.UUID

    Creates a new UUID by parsing 36 chars.

    Creates a new UUID by parsing 36 chars.

    Exceptions thrown

    IllegalArgumentException In case buffer.length != 36

  7. final def apply(buffer: Array[Byte]): uuid.UUID

    Creates a new UUID by concatenating 16 bytes.

    Creates a new UUID by concatenating 16 bytes.

    Exceptions thrown

    IllegalArgumentException In case buffer.length != 16

  8. final def apply(buffer: Array[Short]): uuid.UUID

    Creates a new UUID by concatenating eight 16-bit values.

    Creates a new UUID by concatenating eight 16-bit values.

    Exceptions thrown

    IllegalArgumentException In case buffer.length != 8

  9. final def apply(buffer: Array[Int]): uuid.UUID

    Creates a new UUID by concatenating four 32-bit values.

    Creates a new UUID by concatenating four 32-bit values.

    Exceptions thrown

    IllegalArgumentException In case buffer.length != 4

  10. final def apply(buffer: Array[Long]): uuid.UUID

    Creates a new UUID by concatenating two 64-bit values.

    Creates a new UUID by concatenating two 64-bit values.

    Exceptions thrown

    IllegalArgumentException In case buffer.length != 2

  11. final def apply(mostSigBits: Long, leastSigBits: Long): uuid.UUID

    Creates a new UUID by concatenating two 64-bit values.

    Creates a new UUID by concatenating two 64-bit values.

    mostSigBits

    Most significant bits of the new UUID

    leastSigBits

    Least significant bits of the new UUID

    Annotations
    @inline()
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. final def fromByteArray(buffer: Array[Byte], offset: Int): uuid.UUID

    Creates a new UUID by concatenating 16 bytes.

    Creates a new UUID by concatenating 16 bytes.

    offset

    Offset of the most significant Byte inside the array.

    Annotations
    @inline()
  18. final def fromCharArray(buffer: Array[Char], offset: Int): uuid.UUID

    Creates a new UUID by parsing 36 chars in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx format.

    Creates a new UUID by parsing 36 chars in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx format.

    offset

    Position of the first Char in the array.

    Annotations
    @inline()
  19. final def fromIntArray(buffer: Array[Int], offset: Int): uuid.UUID

    Creates a new UUID by concatenating four 32-bit values.

    Creates a new UUID by concatenating four 32-bit values.

    offset

    Offset of the most significant Int inside the array.

    Annotations
    @inline()
  20. final def fromLongArray(buffer: Array[Long], offset: Int): uuid.UUID

    Creates a new UUID by concatenating two 64-bit values.

    Creates a new UUID by concatenating two 64-bit values.

    offset

    Offset of the most significant Long inside the array.

    Annotations
    @inline()
  21. final def fromShortArray(buffer: Array[Short], offset: Int): uuid.UUID

    Creates a new UUID by concatenating eight 16-bit values.

    Creates a new UUID by concatenating eight 16-bit values.

    offset

    Offset of the most significant Short inside the array.

    Annotations
    @inline()
  22. final def fromString(name: String): uuid.UUID

    Creates a new UUID by parsing a String in legacy (non-strict) format.

    Creates a new UUID by parsing a String in legacy (non-strict) format.

    Annotations
    @inline()
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. final def nameUUIDFromBytes(name: Array[Byte]): uuid.UUID

    Digests the provided byte array using MD5 and returns a type 3 (name based) UUID.

    Digests the provided byte array using MD5 and returns a type 3 (name based) UUID.

    Annotations
    @inline()
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def random: uuid.UUID

    Generates a random UUID (type 4) using a cryptographically strong pseudo random number generator.

    Generates a random UUID (type 4) using a cryptographically strong pseudo random number generator.

    Annotations
    @inline()
  31. final def randomString: String

    Generates a random UUID (type 4) and returns its lowercase String representation

  32. final def randomUUID(): uuid.UUID

    Generates a random UUID (type 4) using a cryptographically strong pseudo random number generator.

    Generates a random UUID (type 4) using a cryptographically strong pseudo random number generator.

    Annotations
    @inline()
  33. val signedOrdering: Ordering[uuid.UUID]

    Default JDK UUID ordering

  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. final def unapply(uuid: String): Option[uuid.UUID]

    Extractor which parses a String in xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx format.

  37. val unsignedOrdering: Ordering[uuid.UUID]

    Default scala-uuid ordering

  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped