implicit object BSONJavaScriptIdentity extends BSONReader[BSONJavaScript, BSONJavaScript] with BSONWriter[BSONJavaScript, BSONJavaScript]
- Alphabetic
- By Inheritance
- BSONJavaScriptIdentity
- BSONWriter
- BSONReader
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def afterRead[U](f: (BSONJavaScript) => U): BSONReader[BSONJavaScript, 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: (BSONJavaScript) => U): BSONWriter[BSONJavaScript, 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
- final def beforeRead[U <: BSONValue](f: (U) => BSONJavaScript): BSONReader[U, BSONJavaScript]
- Definition Classes
- BSONReader
- final def beforeWrite[U](f: (U) => BSONJavaScript): BSONWriter[U, BSONJavaScript]
- Definition Classes
- BSONWriter
- def read(b: BSONJavaScript): BSONJavaScript
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
- BSONJavaScriptIdentity → BSONReader
- def readOpt(bson: BSONJavaScript): Option[BSONJavaScript]
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: BSONJavaScript): Try[BSONJavaScript]
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(b: BSONJavaScript): BSONJavaScript
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
- BSONJavaScriptIdentity → BSONWriter
- def writeOpt(t: BSONJavaScript): Option[BSONJavaScript]
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: BSONJavaScript): Try[BSONJavaScript]
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