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