Packages

o

org.mongodb.scala.bson

BsonMagnets

object BsonMagnets

A magnet pattern implementation enforcing the validity of user provided native values being able to be converted into BsonValues.

Attributes
protected
Since

1.0

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BsonMagnets
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed trait CanBeBsonElement extends AnyRef

    Represents a single BsonElement

    Represents a single BsonElement

    This is essentially a (String, BsonValue) key value pair. Any pair of (String, T) where type T has a BsonTransformer in scope into a BsonValue is also a valid pair.

  2. sealed trait CanBeBsonElements extends AnyRef

    Represents a sequence of BsonElements

    Represents a sequence of BsonElements

    This is essentially a Iterable[(String, BsonValue)] of key value pairs. Any pair of (String, T) where type T has a BsonTransformer in scope into a BsonValue is also a valid pair.

  3. sealed trait CanBeBsonValue extends AnyRef

    Represents any single BsonValue

    Represents any single BsonValue

    This is a BsonValue or any type of T that has a BsonTransformer in scope for the given type.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. implicit def iterableToCanBeBsonElements[T](elems: Iterable[(String, T)])(implicit transformer: BsonTransformer[T]): CanBeBsonElements

    Implicitly converts any iterable of key/value pairs into a CanBeBsonElements.

    Implicitly converts any iterable of key/value pairs into a CanBeBsonElements.

    T

    the type of the values

    elems

    the iterable of key/value pairs

    transformer

    the implicit transformer for the values

    returns

    CanBeBsonElements representing the key/value pairs

  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. implicit def singleToCanBeBsonValue[T](v: T)(implicit transformer: BsonTransformer[T]): CanBeBsonValue

    Implicitly converts type T to a BsonValue as long as there is a BsonTransformer in scope for the given type.

    Implicitly converts type T to a BsonValue as long as there is a BsonTransformer in scope for the given type.

    T

    the type of the initial value

    v

    the initial value

    transformer

    implicitly provided BsonTransformer that needs to be in scope for type T to be transformed into a BsonValue

    returns

    A CanBeBsonValue that holds the transformed BsonValue

  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. implicit def tupleToCanBeBsonElement[T](kv: (String, T))(implicit transformer: BsonTransformer[T]): CanBeBsonElement

    Implicitly converts key/value tuple of type (String, T) into a CanBeBsonElement

    Implicitly converts key/value tuple of type (String, T) into a CanBeBsonElement

    T

    the type of the value

    kv

    the key value pair

    transformer

    the implicit BsonTransformer for the value

    returns

    a CanBeBsonElement representing the key/value pair

  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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.

Inherited from AnyRef

Inherited from Any

Ungrouped