Packages

c

reactivemongo.bson

VariantBSONWriterWrapper

class VariantBSONWriterWrapper[T, B <: BSONValue] extends BSONWriter[T, B]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VariantBSONWriterWrapper
  2. BSONWriter
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new VariantBSONWriterWrapper(writer: VariantBSONWriter[T, B])

Value Members

  1. final def afterWrite[U <: BSONValue](f: (B) => U): BSONWriter[T, 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
  2. final def beforeWrite[U](f: (U) => T): BSONWriter[U, B]
    Definition Classes
    BSONWriter
  3. def write(t: T): B

    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] or writeOpt(bson: B): Option[T].

    Definition Classes
    VariantBSONWriterWrapperBSONWriter
  4. def writeOpt(t: T): Option[B]

    Tries to produce a BSON value from an instance of T, returns None if an error occurred.

    Tries to produce a BSON value from an instance of T, returns None if an error occurred.

    Definition Classes
    BSONWriter
  5. def writeTry(t: T): Try[B]

    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