implicit object BSONDoubleHandler extends BSONHandler[BSONDouble, Double]
- Alphabetic
- By Inheritance
- BSONDoubleHandler
- BSONHandler
- BSONWriter
- BSONReader
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def afterRead[U](f: (Double) => U): BSONReader[BSONDouble, U]
Returns a BSON reader that returns the result of applying
f
on the result of this reader.Returns a BSON reader that returns the result of applying
f
on the result of this reader.- f
the function to apply
- Definition Classes
- BSONReader
- final def afterWrite[U <: BSONValue](f: (BSONDouble) => U): BSONWriter[Double, U]
Returns a BSON writer that returns the result of applying
f
on the BSON value from this writer.Returns a BSON writer that returns the result of applying
f
on the BSON value from this writer.- f
the function to apply
- Definition Classes
- BSONWriter
- def as[R](to: (Double) => R, from: (R) => Double): BSONHandler[BSONDouble, R]
- Definition Classes
- BSONHandler
- final def beforeRead[U <: BSONValue](f: (U) => BSONDouble): BSONReader[U, Double]
- Definition Classes
- BSONReader
- final def beforeWrite[U](f: (U) => Double): BSONWriter[U, BSONDouble]
- Definition Classes
- BSONWriter
- def read(double: BSONDouble): Double
Reads a BSON value and produce an instance of
T
.Reads a BSON value and produce an instance of
T
.This method may throw exceptions at runtime. If used outside a reader, one should consider
readTry(bson: B): Try[T]
orreadOpt(bson: B): Option[T]
.- Definition Classes
- BSONDoubleHandler → BSONReader
- def readOpt(bson: BSONDouble): Option[Double]
Tries to produce an instance of
T
from thebson
value, returnsNone
if an error occurred.Tries to produce an instance of
T
from thebson
value, returnsNone
if an error occurred.- Definition Classes
- BSONReader
- def readTry(bson: BSONDouble): Try[Double]
Tries to produce an instance of
T
from thebson
value.Tries to produce an instance of
T
from thebson
value.- Definition Classes
- BSONReader
- def write(double: Double): BSONDouble
Writes an instance of
T
as a BSON value.Writes an instance of
T
as a BSON value.This method may throw exceptions at runtime. If used outside a reader, one should consider
writeTry(bson: B): Try[T]
orwriteOpt(bson: B): Option[T]
.- Definition Classes
- BSONDoubleHandler → BSONWriter
- def writeOpt(t: Double): Option[BSONDouble]
Tries to produce a BSON value from an instance of
T
, returnsNone
if an error occurred.Tries to produce a BSON value from an instance of
T
, returnsNone
if an error occurred.- Definition Classes
- BSONWriter
- def writeTry(t: Double): Try[BSONDouble]
Tries to produce a BSON value from an instance of
T
.Tries to produce a BSON value from an instance of
T
.- Definition Classes
- BSONWriter