Trait/Object

reactivemongo.play.json.compat

ValueConverters

Related Docs: object ValueConverters | package compat

Permalink

trait ValueConverters extends ValueConvertersCompat with LowPriority1Converters

Linear Supertypes
LowPriority1Converters, LowPriority2Converters, ValueConvertersCompat, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ValueConverters
  2. LowPriority1Converters
  3. LowPriority2Converters
  4. ValueConvertersCompat
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to any2stringadd[ValueConverters] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ValueConverters, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to ArrowAssoc[ValueConverters] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. object JavaScriptObject

    Permalink

    See Implicit conversions for value types between play.api.libs.json and reactivemongo.api.bson, using MongoDB Extended JSON syntax (v2).

    See Implicit conversions for value types between play.api.libs.json and reactivemongo.api.bson, using MongoDB Extended JSON syntax (v2).

    import reactivemongo.play.json.compat.ValueConverters._
    
    def foo(v: BSONValue): JsValue =
      implicitly[JsValue](v) // ValueConverters.fromValue
    
    def bar(v: JsValue): BSONValue =
      implicitly[BSONValue](v) // ValueConverters.toValue

    Note: Logger reactivemongo.api.play.json.ValueConverters can be used to debug.

    See specifications.#conversion-table syntax]]

  7. object JavaScriptWSObject

    Permalink

    See Implicit conversions for value types between play.api.libs.json and reactivemongo.api.bson, using MongoDB Extended JSON syntax (v2).

    See Implicit conversions for value types between play.api.libs.json and reactivemongo.api.bson, using MongoDB Extended JSON syntax (v2).

    import reactivemongo.play.json.compat.ValueConverters._
    
    def foo(v: BSONValue): JsValue =
      implicitly[JsValue](v) // ValueConverters.fromValue
    
    def bar(v: JsValue): BSONValue =
      implicitly[BSONValue](v) // ValueConverters.toValue

    Note: Logger reactivemongo.api.play.json.ValueConverters can be used to debug.

    See specifications.#conversion-table syntax]]

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def ensuring(cond: (ValueConverters) ⇒ Boolean, msg: ⇒ Any): ValueConverters

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to Ensuring[ValueConverters] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (ValueConverters) ⇒ Boolean): ValueConverters

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to Ensuring[ValueConverters] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): ValueConverters

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to Ensuring[ValueConverters] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): ValueConverters

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to Ensuring[ValueConverters] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to StringFormat[ValueConverters] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. implicit def fromArray(bson: BSONArray): JsArray

    Permalink
  19. implicit final def fromBinary(bin: BSONBinary): JsObject

    Permalink

    See syntax:

    See syntax:

    { "$binary":
       {
          "base64": "",
          "subType": ""
       }
    }
  20. implicit final def fromBoolean(bson: BSONBoolean): JsBoolean

    Permalink
  21. implicit final def fromDateTime(bson: BSONDateTime): JsObject

    Permalink

    See syntax:

    See syntax:

    { "$date": { "$numberLong": "" } }
  22. implicit final def fromDecimal(bson: BSONDecimal): JsObject

    Permalink

    See syntax:

    See syntax:

    { "$numberDecimal": "" }
  23. implicit def fromDocument(bson: BSONDocument): JsObject

    Permalink

    Converts to a JSON object

  24. implicit final def fromDouble(bson: BSONDouble): JsObject

    Permalink

    See syntax:

    See syntax:

    // For finite numbers:
    { "$numberDouble": "" }
    
    // For other numbers:
    { "$numberDouble": <"Infinity"|"-Infinity"|"NaN"> }
  25. implicit final def fromInteger(bson: BSONInteger): JsObject

    Permalink

    See syntax:

    See syntax:

    { "$numberInt": "" }
  26. implicit final def fromJavaScript(bson: BSONJavaScript): JsObject

    Permalink

    { "$code": "" }
  27. implicit final def fromJavaScriptWS(bson: BSONJavaScriptWS): JsObject

    Permalink

    {
      "$code": "",
      "$scope": { }
    }
  28. implicit final def fromLong(bson: BSONLong): JsObject

    Permalink

    See syntax:

    See syntax:

    { "$numberLong": "" }
  29. implicit final val fromMaxKey: (BSONMaxKey) ⇒ JsObject

    Permalink

    { "$maxKey": 1 }
  30. implicit final val fromMinKey: (BSONMinKey) ⇒ JsObject

    Permalink

    { "$minKey": 1 }
  31. implicit val fromNull: (BSONNull) ⇒ JsNull.type

    Permalink
  32. implicit final def fromObject(js: JsObject): BSONValue

    Permalink

    First checks whether an explicit type (e.g.

    First checks whether an explicit type (e.g. $binary) is specified, otherwise converts to a BSON document.

  33. implicit final def fromObjectID(bson: BSONObjectID): JsObject

    Permalink

    See syntax:

    See syntax:

    { "$oid": "" }
  34. implicit final def fromRegex(rx: BSONRegex): JsObject

    Permalink

    See syntax:

    See syntax:

    { "$regularExpression":
       {
          "pattern": "",
          "options": ""
      }
    }
  35. implicit final def fromStr(bson: BSONString): JsString

    Permalink
  36. implicit final def fromSymbol(bson: BSONSymbol): JsObject

    Permalink

    { "$symbol": "" }
  37. implicit final def fromTimestamp(ts: BSONTimestamp): JsObject

    Permalink

    See syntax:

    See syntax:

    { "$timestamp": {"t": <t>, "i": <i>} }
  38. implicit final val fromUndefined: (BSONUndefined) ⇒ JsObject

    Permalink

    { "$undefined": true }
  39. implicit final def fromValue(bson: BSONValue): JsValue

    Permalink
    Definition Classes
    LowPriority2Converters
  40. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  41. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  42. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  43. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  44. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  45. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  47. implicit final def toArray(js: JsArray): BSONArray

    Permalink
  48. implicit final def toBoolean(js: JsBoolean): BSONBoolean

    Permalink
    Definition Classes
    LowPriority1Converters
  49. implicit final def toDocument(js: JsObject): BSONDocument

    Permalink

    See toValue

    Definition Classes
    LowPriority1Converters
  50. implicit final val toFalse: (play.api.libs.json.JsFalse.type) ⇒ BSONBoolean

    Permalink
    Definition Classes
    ValueConvertersCompat
  51. implicit val toNull: (JsNull.type) ⇒ BSONNull

    Permalink
  52. implicit final def toNumber(js: JsNumber): BSONValue

    Permalink

    If the number:

    If the number:

    - is not whole then it's converted to BSON double, - is a valid integer then it's converted to a BSON integer (int32), - otherwise it's converted to a BSON long integer (int64).

  53. implicit final def toStr(js: JsString): BSONValue

    Permalink
  54. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  55. implicit final val toTrue: (play.api.libs.json.JsTrue.type) ⇒ BSONBoolean

    Permalink
    Definition Classes
    ValueConvertersCompat
  56. implicit final def toValue(js: JsValue): BSONValue

    Permalink
    Definition Classes
    LowPriority2Converters
  57. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. def [B](y: B): (ValueConverters, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to ArrowAssoc[ValueConverters] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from LowPriority1Converters

Inherited from LowPriority2Converters

Inherited from ValueConvertersCompat

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ValueConverters to any2stringadd[ValueConverters]

Inherited by implicit conversion StringFormat from ValueConverters to StringFormat[ValueConverters]

Inherited by implicit conversion Ensuring from ValueConverters to Ensuring[ValueConverters]

Inherited by implicit conversion ArrowAssoc from ValueConverters to ArrowAssoc[ValueConverters]

Ungrouped