object UUID extends Serializable
- Source
- UUID.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- UUID
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
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
- val SignedMaxValue: UUID
7fffffffffff-ffff-7fff-ffffffffffff
- val SignedMinValue: UUID
800000000000-0000-8000-000000000000
- val UnsignedMaxValue: UUID
ffffffffffff-ffff-ffff-ffffffffffff
- val Zero: UUID
000000000000-0000-0000-000000000000
- def apply(uuid: String): UUID
- def apply(uuid: BigInteger): UUID
- def apply(uuid: BigInt): UUID
- def apply(uuid: java.util.UUID): UUID
- def apply(bytes: Array[Byte]): UUID
- def apply(bytes: ImmutableArray[Byte]): UUID
- def apply(epochMilli: Long, counter: Int, nodeId: Int, random: Long): UUID
- def apply(instant: Instant): UUID
- def apply(date: ImmutableDate): UUID
- def apply(date: Date): UUID
- def apply(nodeId: Int): UUID
Creates a new UUID based on the current time with the given node id
- def apply(): UUID
Creates a new UUID based on the current time with a random node id
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def forEpochMilli(epochMilli: Long): UUID
- def get(bytes: Array[Byte]): Option[UUID]
- def get(bytes: ImmutableArray[Byte]): Option[UUID]
- def get(uuid: String): Option[UUID]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isValid(uuid: String): Boolean
- def main(args: Array[String]): Unit
A non-scientific super simple performance tester
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def random(): UUID
Creates a completely random UUID
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- implicit object ordering extends Ordering[UUID]
- object parse
Can use this in an extractor: val Array(UUID.parse(first), UUID.parse(second)) = s.split(':')