trait UUIDWrapper[T <: UUIDWrapper[T]] extends Ordered[T]
An UUID wrapper class that allow you to define custom types that represent an UUID.
The intended usage pattern is something like:
object UserId extends UUIDFactory[UserId](new UserId(_)) final class UserId(val uuid: UUID) extends UUIDWrapper[UserId]
This allows you to then reference UserId instead of UUID and to have methods that take a strongly typed UserId instead of an UUID (which could represent something other than a User id)
Note: The class that extends this should also extends AnyVal so that serialization will just pass through to the underlying uuid
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- UUIDWrapper
- Ordered
- Comparable
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
<(that: T): Boolean
- Definition Classes
- Ordered
-
def
<=(that: T): Boolean
- Definition Classes
- Ordered
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
>(that: T): Boolean
- Definition Classes
- Ordered
-
def
>=(that: T): Boolean
- Definition Classes
- Ordered
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
compare(that: T): Int
- Definition Classes
- UUIDWrapper → Ordered
-
def
compareTo(that: T): Int
- Definition Classes
- Ordered → Comparable
-
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
-
def
hashCode(): Int
- Definition Classes
- Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
toString(): String
- Definition Classes
- UUIDWrapper → Any