trait ValueConverters extends LowPriorityConverters
Implicit conversions for value types between
reactivemongo.bson
and reactivemongo.api.bson
.
// Required import import reactivemongo.api.bson.compat.ValueConverters._ // From legacy reactivemongo.bson import reactivemongo.api.bson.{ BSONDouble, BSONString, BSONValue } val newStr: BSONString = reactivemongo.bson.BSONString("foo") val newVal: BSONValue = reactivemongo.bson.BSONInteger(2) // To legacy val oldStr: reactivemongo.bson.BSONString = BSONString("bar") val oldVal: reactivemongo.bson.BSONValue = BSONDouble(1.2D)
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- ValueConverters
- LowPriorityConverters
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- 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 ValueConverters toany2stringadd[ValueConverters] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ValueConverters, B)
- Implicit
- This member is added by an implicit conversion from ValueConverters toArrowAssoc[ValueConverters] 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: (ValueConverters) => Boolean, msg: => Any): ValueConverters
- Implicit
- This member is added by an implicit conversion from ValueConverters toEnsuring[ValueConverters] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ValueConverters) => Boolean): ValueConverters
- Implicit
- This member is added by an implicit conversion from ValueConverters toEnsuring[ValueConverters] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ValueConverters
- Implicit
- This member is added by an implicit conversion from ValueConverters toEnsuring[ValueConverters] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ValueConverters
- Implicit
- This member is added by an implicit conversion from ValueConverters toEnsuring[ValueConverters] 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 ValueConverters toStringFormat[ValueConverters] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- implicit final def fromArray(array: BSONArray): bson.BSONArray
- implicit final def fromBinary(binary: BSONBinary): bson.BSONBinary
- implicit final def fromBinarySubtype(subtype: Subtype): bson.Subtype
- implicit final def fromBoolean(boolean: BSONBoolean): bson.BSONBoolean
- implicit final def fromDateTime(dateTime: BSONDateTime): bson.BSONDateTime
- implicit final def fromDecimal(decimal: BSONDecimal): bson.BSONDecimal
- implicit final def fromDocument(doc: BSONDocument): bson.BSONDocument
- implicit final def fromDouble(double: BSONDouble): bson.BSONDouble
- implicit final def fromElement(element: BSONElement): bson.BSONElement
- implicit final def fromInteger(integer: BSONInteger): bson.BSONInteger
- implicit final def fromJavaScript(javaScript: BSONJavaScript): bson.BSONJavaScript
- implicit final def fromJavaScriptWS(javaScript: BSONJavaScriptWS): bson.BSONJavaScriptWS
- implicit final def fromLong(long: BSONLong): bson.BSONLong
- implicit val fromMaxKey: (BSONMaxKey) => bson.BSONMaxKey.type
- implicit val fromMinKey: (BSONMinKey) => bson.BSONMinKey.type
- implicit val fromNull: (BSONNull) => bson.BSONNull.type
- implicit final def fromObjectID(objectID: BSONObjectID): bson.BSONObjectID
- implicit final def fromRegex(regex: BSONRegex): bson.BSONRegex
- implicit final def fromStr(string: BSONString): bson.BSONString
- implicit final def fromSymbol(symbol: BSONSymbol): bson.BSONSymbol
- implicit final def fromTimestamp(timestamp: BSONTimestamp): bson.BSONTimestamp
- implicit val fromUndefined: (BSONUndefined) => bson.BSONUndefined.type
- implicit final def fromValue(bson: BSONValue): bson.BSONValue
- Definition Classes
- LowPriorityConverters
- 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 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 synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- implicit final def toArray(legacy: bson.BSONArray): BSONArray
- implicit final def toBinary(legacy: bson.BSONBinary): BSONBinary
- implicit final def toBinarySubtype(legacy: bson.Subtype): Subtype
- implicit final def toBoolean(legacy: bson.BSONBoolean): BSONBoolean
- implicit final def toDateTime(legacy: bson.BSONDateTime): BSONDateTime
- implicit final def toDecimal(legacy: bson.BSONDecimal): BSONDecimal
- implicit final def toDocument(legacy: bson.BSONDocument): BSONDocument
- implicit final def toDouble(legacy: bson.BSONDouble): BSONDouble
- implicit final def toElement(legacy: bson.BSONElement): BSONElement
- implicit final def toInteger(legacy: bson.BSONInteger): BSONInteger
- implicit final def toJavaScript(legacy: bson.BSONJavaScript): BSONJavaScript
- implicit final def toJavaScriptWS(legacy: bson.BSONJavaScriptWS): BSONJavaScriptWS
- implicit final def toLong(legacy: bson.BSONLong): BSONLong
- implicit val toMaxKey: (bson.BSONMaxKey.type) => BSONMaxKey
- implicit val toMinKey: (bson.BSONMinKey.type) => BSONMinKey
- implicit val toNull: (bson.BSONNull.type) => BSONNull
- implicit final def toObjectID(legacy: bson.BSONObjectID): BSONObjectID
- implicit final def toRegex(legacy: bson.BSONRegex): BSONRegex
- implicit final def toStr(legacy: bson.BSONString): BSONString
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit final def toSymbol(legacy: bson.BSONSymbol): BSONSymbol
- implicit final def toTimestamp(legacy: bson.BSONTimestamp): BSONTimestamp
- implicit val toUndefined: (bson.BSONUndefined.type) => BSONUndefined
- implicit final def toValue(legacy: bson.BSONValue): BSONValue
- Definition Classes
- LowPriorityConverters
- 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): (ValueConverters, B)
- Implicit
- This member is added by an implicit conversion from ValueConverters toArrowAssoc[ValueConverters] 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.