object BSONDouble
BSONDouble utilities
import reactivemongo.api.bson.BSONDouble
BSONDouble(1.23D) match {
case BSONDouble(v) => assert(v == 1.23D)
case _ => ???
}
- Companion:
- class
Value members
Concrete methods
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
}