object BSONArray
See BSONArray
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- BSONArray
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(values: bson.BaseColl[BSONValue]): BSONArray
Creates a new BSONArray containing all the
values
in the givenIterable
. -
def
apply(values: IndexedSeq[BSONValue]): BSONArray
Creates a new BSONArray containing all the
values
in the givenIterable
. -
def
apply(values: Producer[BSONValue]*): BSONArray
Creates a new BSONArray containing all the given
values
. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
val
empty: BSONArray
An empty BSONArray.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
pretty(array: BSONArray): String
Returns a String representing the given BSONArray.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unapply(that: Any): Option[IndexedSeq[BSONValue]]
Extracts the values sequence if
that
's a BSONArray.Extracts the values sequence if
that
's a BSONArray.import reactivemongo.api.bson.{ BSON, BSONArray, BSONValue } def foo(input: BSONValue): Unit = input match { case BSONArray(vs) => pretty(vs) case _ => println("Not a BSON array") } def bar(arr: BSONArray): Unit = arr match { // with splat pattern case BSONArray(Seq(requiredFirst, other @ _*)) => println(s"first = $requiredFirst") pretty(other) case _ => println("BSON array doesn't match") } def pretty(values: Seq[BSONValue]): Unit = println(values.map(BSON.pretty).mkString(", "))
- Annotations
- @inline()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )