object TypeID
- Source
- TypeID.scala
- Alphabetic
- By Inheritance
- TypeID
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait BuildError extends AnyRef
- sealed trait DecodeError extends AnyRef
- trait TypeIDGenerator[F[_]] extends AnyRef
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def build(prefix: String, uuid: UUID, enforceUUIDV7: Boolean = true): ValidatedNec[BuildError, TypeID]
Build a TypeID based on the supplied prefix and uuid.
Build a TypeID based on the supplied prefix and uuid.
- prefix
a string at most 63 characters in all lowercase ASCII [a-z].
- enforceUUIDV7
true by default. When set to false, allows to build an out of spec TypeID based on a other type of UUID.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def decode(typeIDString: String, enforceUUIDV7: Boolean = true): ValidatedNec[DecodeError, TypeID]
Decode a TypeID from a string representation.
Decode a TypeID from a string representation.
- enforceUUIDV7
true by default. When set to false, allows to decode an out of spec TypeID based on a other type of UUID.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def generator[F[_]](prefix: String)(implicit arg0: Async[F]): F[() => F[TypeID]]
Return a UUID V7 based TypeID generator with fixed prefix.
Return a UUID V7 based TypeID generator with fixed prefix.
- prefix
a string at most 63 characters in all lowercase ASCII [a-z]. Will lift an error in the F context if the prefix is invalid.
- def generator[F[_]](implicit arg0: Async[F]): F[TypeIDGenerator[F]]
Return a UUID V7 based TypeID generator.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit val typeIDEq: Eq[TypeID]
- implicit val typeIDOrd: Order[TypeID]
- implicit val typeIDOrdering: Ordering[TypeID]
- implicit val typeIDShow: Show[TypeID]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object BuildError
- object DecodeError