package uuid

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

To use the wrapper, either extend the uuid.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
  1. Public
  2. All

Type Members

  1. trait Imports extends AnyRef

    This trait holds all the components required for completing the pimp-my-library pattern:

  2. class RichUUID extends AnyRef

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

  3. class StaticUUID extends AnyRef

    This class holds all static forwarders and UUID factories.

  4. type UUID = UUID

    Definition Classes

Value Members

  1. object StaticUUID extends StaticUUID

    Singleton object to be bound with the UUID value in the package object.

  2. val UUID: io.jvm.uuid.StaticUUID.type

    Definition Classes
  3. implicit def toRichUUID(uuid: UUID): RichUUID

    Definition Classes