ObjectId
mongo4cats.bson.package$.ObjectId$
object ObjectId
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ObjectId.type
Members list
Concise view
Value members
Concrete methods
Constructs a new instance from a 24-byte hexadecimal string representation.
Constructs a new instance from a 24-byte hexadecimal string representation.
Attributes
- hex
the string to convert
- Throws:
- IllegalArgumentException
if the string is not a valid hex string representation of an ObjectId
Constructs a new instance from the given byte array
Constructs a new instance from the given byte array
Attributes
- bytes
the byte array
- Throws:
- IllegalArgumentException
if array is null or not of length 12
Constructs a new instance using the given instant.
Constructs a new instance using the given instant.
Attributes
- instant
the instant
Constructs a new instance from a 24-byte hexadecimal string representation.
Constructs a new instance from a 24-byte hexadecimal string representation.
Attributes
- hex
the string to convert