Packages

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
LowPriorityConverters, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ValueConverters
  2. LowPriorityConverters
  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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. 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
  4. 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()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. 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
  9. 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
  10. 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
  11. 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
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. 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()
  15. implicit final def fromArray(array: BSONArray): bson.BSONArray
  16. implicit final def fromBinary(binary: BSONBinary): bson.BSONBinary
  17. implicit final def fromBinarySubtype(subtype: Subtype): bson.Subtype
  18. implicit final def fromBoolean(boolean: BSONBoolean): bson.BSONBoolean
  19. implicit final def fromDateTime(dateTime: BSONDateTime): bson.BSONDateTime
  20. implicit final def fromDecimal(decimal: BSONDecimal): bson.BSONDecimal
  21. implicit final def fromDocument(doc: BSONDocument): bson.BSONDocument
  22. implicit final def fromDouble(double: BSONDouble): bson.BSONDouble
  23. implicit final def fromElement(element: BSONElement): bson.BSONElement
  24. implicit final def fromInteger(integer: BSONInteger): bson.BSONInteger
  25. implicit final def fromJavaScript(javaScript: BSONJavaScript): bson.BSONJavaScript
  26. implicit final def fromJavaScriptWS(javaScript: BSONJavaScriptWS): bson.BSONJavaScriptWS
  27. implicit final def fromLong(long: BSONLong): bson.BSONLong
  28. implicit val fromMaxKey: (BSONMaxKey) => bson.BSONMaxKey.type
  29. implicit val fromMinKey: (BSONMinKey) => bson.BSONMinKey.type
  30. implicit val fromNull: (BSONNull) => bson.BSONNull.type
  31. implicit final def fromObjectID(objectID: BSONObjectID): bson.BSONObjectID
  32. implicit final def fromRegex(regex: BSONRegex): bson.BSONRegex
  33. implicit final def fromStr(string: BSONString): bson.BSONString
  34. implicit final def fromSymbol(symbol: BSONSymbol): bson.BSONSymbol
  35. implicit final def fromTimestamp(timestamp: BSONTimestamp): bson.BSONTimestamp
  36. implicit val fromUndefined: (BSONUndefined) => bson.BSONUndefined.type
  37. implicit final def fromValue(bson: BSONValue): bson.BSONValue
    Definition Classes
    LowPriorityConverters
  38. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  39. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  40. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  41. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  42. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  43. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. implicit final def toArray(legacy: bson.BSONArray): BSONArray
  46. implicit final def toBinary(legacy: bson.BSONBinary): BSONBinary
  47. implicit final def toBinarySubtype(legacy: bson.Subtype): Subtype
  48. implicit final def toBoolean(legacy: bson.BSONBoolean): BSONBoolean
  49. implicit final def toDateTime(legacy: bson.BSONDateTime): BSONDateTime
  50. implicit final def toDecimal(legacy: bson.BSONDecimal): BSONDecimal
  51. implicit final def toDocument(legacy: bson.BSONDocument): BSONDocument
  52. implicit final def toDouble(legacy: bson.BSONDouble): BSONDouble
  53. implicit final def toElement(legacy: bson.BSONElement): BSONElement
  54. implicit final def toInteger(legacy: bson.BSONInteger): BSONInteger
  55. implicit final def toJavaScript(legacy: bson.BSONJavaScript): BSONJavaScript
  56. implicit final def toJavaScriptWS(legacy: bson.BSONJavaScriptWS): BSONJavaScriptWS
  57. implicit final def toLong(legacy: bson.BSONLong): BSONLong
  58. implicit val toMaxKey: (bson.BSONMaxKey.type) => BSONMaxKey
  59. implicit val toMinKey: (bson.BSONMinKey.type) => BSONMinKey
  60. implicit val toNull: (bson.BSONNull.type) => BSONNull
  61. implicit final def toObjectID(legacy: bson.BSONObjectID): BSONObjectID
  62. implicit final def toRegex(legacy: bson.BSONRegex): BSONRegex
  63. implicit final def toStr(legacy: bson.BSONString): BSONString
  64. def toString(): String
    Definition Classes
    AnyRef → Any
  65. implicit final def toSymbol(legacy: bson.BSONSymbol): BSONSymbol
  66. implicit final def toTimestamp(legacy: bson.BSONTimestamp): BSONTimestamp
  67. implicit val toUndefined: (bson.BSONUndefined.type) => BSONUndefined
  68. implicit final def toValue(legacy: bson.BSONValue): BSONValue
    Definition Classes
    LowPriorityConverters
  69. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  70. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  71. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. 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.

  2. 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.

Inherited from LowPriorityConverters

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromValueConverters to any2stringadd[ValueConverters]

Inherited by implicit conversion StringFormat fromValueConverters to StringFormat[ValueConverters]

Inherited by implicit conversion Ensuring fromValueConverters to Ensuring[ValueConverters]

Inherited by implicit conversion ArrowAssoc fromValueConverters to ArrowAssoc[ValueConverters]

Ungrouped