This trait holds all the components required for completing the pimp-my-library pattern:
This trait holds all the components required for completing the pimp-my-library pattern:
UUID
type aliasUUID
singleton object with static forwarders and new UUID
factoriesjava.util.UUID
classUse case is to use it by extending it with your package object:
package com package object example extends io.jvm.uuid.Imports
Now any class in the com.example
package will be able to access rich UUID
functionality:
package com.example class User(val id: UUID = UUID.random)
Pimp-my-library pattern, wrapping the underlying java.util.UUID
.
This class holds all static forwarders and UUID
factories.
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.
Singleton object to be bound with the UUID
value in the package object.
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: