trait HandlerConverters extends LowPriorityHandlerConverters1
Implicit conversions for handler types
between reactivemongo.bson
and reactivemongo.api.bson
.
import reactivemongo.api.bson.compat.HandlerConverters._ def foo[T](lw: reactivemongo.bson.BSONDocumentWriter[T]) = { val w: reactivemongo.api.bson.BSONDocumentWriter[T] = lw w } import reactivemongo.bson.BSONValue def bar[T](lr: reactivemongo.api.bson.BSONReader[T]) = { val r: reactivemongo.bson.BSONReader[BSONValue, T] = lr r }
- Alphabetic
- By Inheritance
- HandlerConverters
- LowPriorityHandlerConverters1
- LowPriorityHandlerConverters2
- LowPriorityHandlerConverters3
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from HandlerConverters toany2stringadd[HandlerConverters] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (HandlerConverters, B)
- Implicit
- This member is added by an implicit conversion from HandlerConverters toArrowAssoc[HandlerConverters] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def ensuring(cond: (HandlerConverters) => Boolean, msg: => Any): HandlerConverters
- Implicit
- This member is added by an implicit conversion from HandlerConverters toEnsuring[HandlerConverters] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (HandlerConverters) => Boolean): HandlerConverters
- Implicit
- This member is added by an implicit conversion from HandlerConverters toEnsuring[HandlerConverters] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): HandlerConverters
- Implicit
- This member is added by an implicit conversion from HandlerConverters toEnsuring[HandlerConverters] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): HandlerConverters
- Implicit
- This member is added by an implicit conversion from HandlerConverters toEnsuring[HandlerConverters] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from HandlerConverters toStringFormat[HandlerConverters] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- implicit final def fromDocumentHandler[T](h: BSONDocumentHandler[T]): bson.BSONDocumentHandler[T]
Implicit conversion from new
BSONDocumentHandler
to the legacy API.Implicit conversion from new
BSONDocumentHandler
to the legacy API.import reactivemongo.api.bson.compat.HandlerConverters.fromDocumentHandler def bar[T](lh: reactivemongo.api.bson.BSONDocumentHandler[T]) = { val h: reactivemongo.bson.BSONDocumentHandler[T] = lh h }
- implicit final def fromDocumentReader[T](r: BSONDocumentReader[T]): bson.BSONDocumentReader[T]
import reactivemongo.api.bson.compat.HandlerConverters.fromDocumentReader def foo[T](r: reactivemongo.api.bson.BSONDocumentReader[T]) = { val lr: reactivemongo.bson.BSONDocumentReader[T] = r lr }
- Definition Classes
- LowPriorityHandlerConverters2
- implicit final def fromDocumentWriter[T](w: BSONDocumentWriter[T]): bson.BSONDocumentWriter[T]
import reactivemongo.api.bson.compat.HandlerConverters.fromDocumentWriter def bar[T](lw: reactivemongo.api.bson.BSONDocumentWriter[T]) = { val w: reactivemongo.bson.BSONDocumentWriter[T] = lw w }
- Definition Classes
- LowPriorityHandlerConverters2
- implicit final def fromHandler[T](h: BSONHandler[T]): bson.BSONHandler[bson.BSONValue, T]
- Definition Classes
- LowPriorityHandlerConverters1
- implicit final def fromReader[T](r: BSONReader[T]): bson.BSONReader[bson.BSONValue, T]
- Definition Classes
- LowPriorityHandlerConverters3
- implicit final def fromWriter[T](w: BSONWriter[T]): bson.BSONWriter[T, bson.BSONValue]
- Definition Classes
- LowPriorityHandlerConverters3
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def legacyDocumentHandler[T](implicit r: bson.BSONDocumentReader[T], w: bson.BSONDocumentWriter[T]): bson.BSONDocumentHandler[T]
- Definition Classes
- LowPriorityHandlerConverters1
- implicit def legacyReaderNewValue[B <: BSONValue, L](implicit r: BSONDocumentReader[B], conv: (B) => L): bson.BSONDocumentReader[L]
Based on the compatibility conversions, provides instances of legacy
BSONDocumentReader
for the new BSON value API. - implicit def legacyWriterNewValue[B <: BSONValue, L](implicit w: BSONDocumentWriter[B], conv: (L) => B): bson.BSONDocumentWriter[L]
Based on the compatibility conversions, provides instances of legacy
BSONDocumentWriter
for the new BSON value API. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def providedDocumentHandler[T](implicit r: BSONDocumentReader[T], w: BSONDocumentWriter[T]): BSONDocumentHandler[T]
Provided there are both a
BSONDocumentReader
and aBSONDocumentWriter
for the given typeT
, aBSONDocumentHandler
is materialized.Provided there are both a
BSONDocumentReader
and aBSONDocumentWriter
for the given typeT
, aBSONDocumentHandler
is materialized.- Definition Classes
- LowPriorityHandlerConverters1
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- implicit final def toDocumentHandler[T](h: bson.BSONDocumentHandler[T]): BSONDocumentHandler[T]
Implicit conversion from legacy
BSONDocumentHandler
to the new API.Implicit conversion from legacy
BSONDocumentHandler
to the new API.import reactivemongo.api.bson.compat.HandlerConverters.toDocumentHandler def foo[T](lh: reactivemongo.bson.BSONDocumentHandler[T]) = { val h: reactivemongo.api.bson.BSONDocumentHandler[T] = lh h }
- implicit final def toDocumentReader[T](implicit r: bson.BSONDocumentReader[T]): BSONDocumentReader[T]
Provided there is a legacy document reader, resolve a new one.
Provided there is a legacy document reader, resolve a new one.
- Definition Classes
- LowPriorityHandlerConverters2
- implicit final def toDocumentReaderConv[T](r: bson.BSONDocumentReader[T]): BSONDocumentReader[T]
import reactivemongo.api.bson.compat.HandlerConverters.toDocumentReaderConv def lorem[T](lw: reactivemongo.bson.BSONDocumentReader[T]) = { val w: reactivemongo.api.bson.BSONDocumentReader[T] = lw w }
- Definition Classes
- LowPriorityHandlerConverters2
- implicit final def toDocumentWriter[T](implicit w: bson.BSONDocumentWriter[T]): BSONDocumentWriter[T]
Provided there is a legacy document writer, resolve a new one.
Provided there is a legacy document writer, resolve a new one.
- Definition Classes
- LowPriorityHandlerConverters2
- implicit final def toDocumentWriterConv[T](w: bson.BSONDocumentWriter[T]): BSONDocumentWriter[T]
import reactivemongo.api.bson.compat.HandlerConverters.toDocumentWriterConv def foo[T](lw: reactivemongo.bson.BSONDocumentWriter[T]) = { val w: reactivemongo.api.bson.BSONDocumentWriter[T] = lw w }
- Definition Classes
- LowPriorityHandlerConverters2
- implicit final def toHandler[T, B <: bson.BSONValue](h: bson.BSONHandler[B, T])(implicit bc: ClassTag[B]): BSONHandler[T]
- Definition Classes
- LowPriorityHandlerConverters1
- implicit final def toReader[T, B <: bson.BSONValue](r: bson.BSONReader[B, T])(implicit bc: ClassTag[B]): BSONReader[T]
- Definition Classes
- LowPriorityHandlerConverters3
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit final def toWriter[T](w: bson.BSONWriter[T, _ <: bson.BSONValue]): BSONWriter[T]
- Definition Classes
- LowPriorityHandlerConverters3
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
- def →[B](y: B): (HandlerConverters, B)
- Implicit
- This member is added by an implicit conversion from HandlerConverters toArrowAssoc[HandlerConverters] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.