BSONBinary

reactivemongo.api.bson.BSONBinary$
See theBSONBinary companion class
object BSONBinary

BSONBinary utilities

import reactivemongo.api.bson.{ BSONBinary, Subtype }

val bin1 = BSONBinary(
 "foo".getBytes("UTF-8"), Subtype.GenericBinarySubtype)

// See Subtype.UuidSubtype
val uuid = BSONBinary(java.util.UUID.randomUUID())

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def apply(value: Array[Byte], subtype: Subtype): BSONBinary

Creates a BSONBinary with given value and Subtype.

Creates a BSONBinary with given value and Subtype.

import reactivemongo.api.bson.Subtype

reactivemongo.api.bson.BSONBinary(
 "foo".getBytes("UTF-8"), Subtype.GenericBinarySubtype)

Attributes

def apply(id: UUID): BSONBinary

Creates a BSONBinary from the given UUID (with Subtype.UuidSubtype).

Creates a BSONBinary from the given UUID (with Subtype.UuidSubtype).

reactivemongo.api.bson.BSONBinary(java.util.UUID.randomUUID())

Attributes

Returns a string representation of the given BSONBinary.

Returns a string representation of the given BSONBinary.

Attributes

Extracts the Subtype if that's a BSONBinary.

Extracts the Subtype if that's a BSONBinary.

Attributes