Packages

final class BSONArray extends BSONValue

A BSONArray structure (BSON type 0x04).

A BSONArray is a indexed sequence of BSONValue.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BSONArray
  2. BSONValue
  3. AnyRef
  4. Any
Implicitly
  1. by identityValueProducer
  2. by valueProducer
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 BSONArray toany2stringadd[BSONArray] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ++(values: BSONValue*): BSONArray

    Returns a BSON array with the given values appended.

  5. def ++(arr: BSONArray): BSONArray

    Returns a BSON array with the values of the given one appended.

  6. def +:(value: BSONValue): BSONArray

    Returns a BSON array with the given value prepended.

  7. def ->[B](y: B): (BSONArray, B)
    Implicit
    This member is added by an implicit conversion from BSONArray toArrowAssoc[BSONArray] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. final def asOpt[T](implicit reader: BSONReader[T]): Option[T]

    Optionally parses this value as a T one.

    Optionally parses this value as a T one.

    returns

    Some successfully parsed value, or None if fails

    import scala.util.Try
    import reactivemongo.api.bson.BSONValue
    
    def foo(v: BSONValue): Option[String] = v.asOpt[String]
    Definition Classes
    BSONValue
  11. final def asTry[T](implicit reader: BSONReader[T]): Try[T]

    Tries to parse this value as a T one.

    Tries to parse this value as a T one.

    import scala.util.Try
    import reactivemongo.api.bson.BSONValue
    
    def foo(v: BSONValue): Try[String] = v.asTry[String]
    Definition Classes
    BSONValue
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  13. val code: Byte

    The code indicating the BSON type for this value

    The code indicating the BSON type for this value

    Definition Classes
    BSONArrayBSONValue
  14. def ensuring(cond: (BSONArray) => Boolean, msg: => Any): BSONArray
    Implicit
    This member is added by an implicit conversion from BSONArray toEnsuring[BSONArray] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (BSONArray) => Boolean): BSONArray
    Implicit
    This member is added by an implicit conversion from BSONArray toEnsuring[BSONArray] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: => Any): BSONArray
    Implicit
    This member is added by an implicit conversion from BSONArray toEnsuring[BSONArray] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): BSONArray
    Implicit
    This member is added by an implicit conversion from BSONArray toEnsuring[BSONArray] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(that: Any): Boolean
    Definition Classes
    BSONArray → AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from BSONArray toStringFormat[BSONArray] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  22. def get(index: Int): Option[BSONValue]

    Returns the BSONValue at the given index.

    Returns the BSONValue at the given index.

    If there is no such index, or if the matching value cannot be deserialized returns None.

    index

    the index to be found in the array

  23. def getAsOpt[T](index: Int)(implicit reader: BSONReader[T]): Option[T]

    Returns the BSONValue at the given index, and converts it with the given implicit BSONReader.

    Returns the BSONValue at the given index, and converts it with the given implicit BSONReader.

    If there is no matching value, or the value could not be deserialized, or converted, returns a None.

    index

    the index to be found in the array

  24. def getAsTry[T](index: Int)(implicit reader: BSONReader[T]): Try[T]

    Gets the BSONValue at the given index, and converts it with the given implicit BSONReader.

    Gets the BSONValue at the given index, and converts it with the given implicit BSONReader.

    If there is no matching value, or the value could not be deserialized, or converted, returns a Failure.

    The Failure holds a exceptions.BSONValueNotFoundException if the index could not be found.

    index

    the index to be found in the array

  25. def getAsUnflattendTry[T](index: Int)(implicit reader: BSONReader[T]): Try[Option[T]]

    Gets the BSONValue at the given index, and converts it with the given implicit BSONReader.

    Gets the BSONValue at the given index, and converts it with the given implicit BSONReader.

    If there is no matching value, Success(None) is returned. If there is a value, it must be valid or a Failure is returned.

    index

    the index to be found in the array

  26. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def hashCode(): Int
    Definition Classes
    BSONArray → AnyRef → Any
  28. def headOption: Option[BSONValue]

    The first/mandatory value, if any

  29. def isEmpty: Boolean

    Indicates whether this array is empty

    Indicates whether this array is empty

    Annotations
    @inline()
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. def size: Int

    The number of values

    The number of values

    Annotations
    @inline()
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    BSONArray → AnyRef → Any
  37. val values: IndexedSeq[BSONValue]
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def [B](y: B): (BSONArray, B)
    Implicit
    This member is added by an implicit conversion from BSONArray toArrowAssoc[BSONArray] 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 BSONValue

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion identityValueProducer fromBSONArray to Producer[BSONValue]

Inherited by implicit conversion valueProducer fromBSONArray to Producer[BSONValue]

Inherited by implicit conversion any2stringadd fromBSONArray to any2stringadd[BSONArray]

Inherited by implicit conversion StringFormat fromBSONArray to StringFormat[BSONArray]

Inherited by implicit conversion Ensuring fromBSONArray to Ensuring[BSONArray]

Inherited by implicit conversion ArrowAssoc fromBSONArray to ArrowAssoc[BSONArray]

Ungrouped