io.github.raptros.bson

DecodeBsonField

trait DecodeBsonField[+A] extends AnyRef

an instance of DecodeBsonField for a type A can extract an A from a field of a db object.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DecodeBsonField
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def decode(k: String, dbo: DBObject): DecodeResult[A]

    decodes an A from a field of a dbo.

    decodes an A from a field of a dbo.

    k

    a key to look up in dbo

    dbo

    a DBObject.

    returns

    a DecodeResult with an A if successful.

Concrete Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. def &&&[B](x: DecodeBsonField[B]): DecodeBsonField[(A, B)]

    i'm not certain if this is useful.

    i'm not certain if this is useful. it produces a decoder that uses this decoder and a second one to produce a pair of values decoded from a single field.

  4. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  5. def apply(k: String, dbo: DBObject): DecodeResult[A]

    alias for decode

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def flatMap[B](f: (A) ⇒ DecodeBsonField[B]): DecodeBsonField[B]

    derives a new DecodeBsonField by passing a decoded value to a function that produces a DecodeBsonField which is then used to decode the field

  12. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  15. def map[B](f: (A) ⇒ B): DecodeBsonField[B]

    derives a new DecodeBsonField by transforming decoded values

  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. def orElse[B >: A](x: ⇒ DecodeBsonField[B]): DecodeBsonField[B]

    derives a new DecodeBsonField that first tries this one and then tries another one.

    derives a new DecodeBsonField that first tries this one and then tries another one.

    B

    a supertype of A that x produces

    x

    the decoder to try after this one.

    returns

    a new decoder.

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def |||[B >: A](x: ⇒ DecodeBsonField[B]): DecodeBsonField[B]

    alias for orElse

Inherited from AnyRef

Inherited from Any

Ungrouped