BSONDouble

reactivemongo.api.bson.BSONDouble$
See theBSONDouble companion class
object BSONDouble

BSONDouble utilities

import reactivemongo.api.bson.BSONDouble

BSONDouble(1.23D) match {
 case BSONDouble(v) => assert(v == 1.23D)
 case _ => ???
}

Attributes

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

Members list

Concise view

Value members

Concrete methods

def apply(value: Double): BSONDouble

Returns a BSONDouble.

Returns a BSONDouble.

reactivemongo.api.bson.BSONDouble(1.23D)

Attributes

def unapply(that: Any): Option[Double]

Extracts the double value if that's a BSONDouble.

Extracts the double value if that's a BSONDouble.

import reactivemongo.api.bson.{ BSONDouble, BSONValue }

def patMat(v: BSONValue): Boolean = v match {
 case BSONDouble(v) => v > 0D
 case _ => false
}

Attributes