BSONNull

reactivemongo.api.bson.BSONNull
See theBSONNull companion trait
object BSONNull extends BSONNull

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
trait BSONNull
trait BSONValue
class Object
trait Matchable
class Any
Show all
Self type
BSONNull.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Inherited methods

final def asOpt[T](implicit reader: BSONReader[T]): Option[T]

Optionally parses this value as a T one.

Optionally parses this value as a T one.

Attributes

Returns

Some successfully parsed value, or None if fails

import reactivemongo.api.bson.BSONValue
def foo(v: BSONValue): Option[String] = v.asOpt[String]
Inherited from:
BSONValue
final def asTry[T](implicit reader: BSONReader[T]): Try[T]

Tries to parse this value as a T one.

Tries to parse this value as a T one.

import scala.util.Try
import reactivemongo.api.bson.BSONValue

def foo(v: BSONValue): Try[String] = v.asTry[String]

Attributes

Inherited from:
BSONValue
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
BSONNull -> Any
Inherited from:
BSONNull

Concrete fields

val pretty: String

Inherited fields

The pretty type name

The pretty type name

Attributes

Inherited from:
BSONNull
val byteCode: Byte

The code indicating the BSON type for this value as Byte

The code indicating the BSON type for this value as Byte

Attributes

Inherited from:
BSONNull
val code: Int

The code indicating the BSON type for this value

The code indicating the BSON type for this value

Attributes

Inherited from:
BSONNull
override val toBoolean: Try[Boolean]

Returns the boolean equivalent value

Returns the boolean equivalent value

Attributes

Inherited from:
BSONNull