Document

case class Document(underlying: BsonDocument) extends IterableOps[(String, BsonValue), Iterable, Document] with StrictOptimizedIterableOps[(String, BsonValue), Iterable, Document]

An mutable Document implementation.

A strictly typed Map[String, BsonValue] like structure that traverses the elements in insertion order. Unlike native scala maps there is no variance in the value type and it always has to be a BsonValue.

Value parameters:
underlying

the underlying BsonDocument which stores the data.

Companion:
object
trait Serializable
trait Product
trait Equals
trait StrictOptimizedIterableOps[(String, BsonValue), Iterable, Document]
trait Bson
trait Iterable[(String, BsonValue)]
trait IterableFactoryDefaults[(String, BsonValue), Iterable]
trait IterableOps[(String, BsonValue), Iterable, Document]
trait IterableOnceOps[(String, BsonValue), Iterable, Document]
trait IterableOnce[(String, BsonValue)]
class Object
trait Matchable
class Any

Value members

Concrete methods

final def ++(suffix: IterableOnce[(String, BsonValue)]): Document
def ++=(elems: CanBeBsonElements): Document

Adds all elements produced by a TraversableOnce to this document.

Adds all elements produced by a TraversableOnce to this document.

Value parameters:
elems

a sequence of key/values that make up the Document. This can be any valid sequence of (String, BsonValue) pairs that can be transformed into a sequence of BsonElements via BsonMagnets.CanBeBsonElements implicits and any BsonTransformers that are in scope.

Returns:

the document itself.

def +=(elems: CanBeBsonElement*): Document

Adds a new key/value pair to this document. If the document already contains a mapping for the key, it will be overridden by the new value.

Adds a new key/value pair to this document. If the document already contains a mapping for the key, it will be overridden by the new value.

Value parameters:
elems

the key/value pair. This can be any valid (String, BsonValue) pair that can be transformed into a BsonElement via BsonMagnets.CanBeBsonElement implicits and any BsonTransformers that are in scope.

Returns:

the document itself

def --=(xs: IterableOnce[String]): Document

Removes all elements produced by an iterator from this document.

Removes all elements produced by an iterator from this document.

Value parameters:
xs

the iterator producing the elements to remove.

Returns:

the document itself

def -=(key: String): Document

Removes a key from this document.

Removes a key from this document.

Value parameters:
key

the key to be removed

Returns:

the document itself.

def -=(elems: String*): Document

Removes two or more elements from this document.

Removes two or more elements from this document.

Value parameters:
elems

the remaining elements to remove.

Returns:

the document itself

def clear(): Unit

Removes all bindings from the document. After this operation has completed the document will be empty.

Removes all bindings from the document. After this operation has completed the document will be empty.

def concat(suffix: IterableOnce[(String, BsonValue)]): Document
def copy(): Document

Copies the document and creates a new one

Copies the document and creates a new one

Returns:

a new document with a copy of the underlying BsonDocument

override def empty: Document
Definition Classes
IterableFactoryDefaults -> IterableOps
override def foreach[U](f: ((String, BsonValue)) => U): Unit

Applies a function f to all elements of this document.

Applies a function f to all elements of this document.

Type parameters:
U

the type parameter describing the result of function f. This result will always be ignored. Typically U is Unit, but this is not necessary.

Value parameters:
f

the function that is applied for its side-effect to every element. The result of function f is discarded.

Definition Classes
IterableOnceOps
def getOrElseUpdate[B](key: String, op: => B)(implicit transformer: BsonTransformer[B]): BsonValue

If given key is already in this document, returns associated value.

If given key is already in this document, returns associated value.

Otherwise, computes value from given expression op, stores with key in document and returns that value.

Value parameters:
key

the key to test

op

the computation yielding the value to associate with key, if key is previously unbound.

Returns:

the value associated with key (either previously or as a result of executing the method).

def map[B](f: ((String, BsonValue)) => (String, BsonValue)): Document
def put[B](key: String, value: B)(implicit transformer: BsonTransformer[B]): Option[BsonValue]

Adds a new key/value pair to this document and optionally returns previously bound value. If the document already contains a mapping for the key, it will be overridden by the new value.

Adds a new key/value pair to this document and optionally returns previously bound value. If the document already contains a mapping for the key, it will be overridden by the new value.

Value parameters:
key

the key to update

value

the new value

Returns:

an option value containing the value associated with the key before the put operation was executed, or None if key was not defined in the document before.

def remove(key: String): Option[BsonValue]

Removes a key from this document, returning the value associated previously with that key as an option.

Removes a key from this document, returning the value associated previously with that key as an option.

Value parameters:
key

the key to be removed

Returns:

an option value containing the value associated previously with key, or None if key was not defined in the document before.

def retain(p: (String, BsonValue) => Boolean): Document

Retains only those mappings for which the predicate p returns true.

Retains only those mappings for which the predicate p returns true.

Value parameters:
p

The test predicate

def transform[B](f: (String, BsonValue) => B)(implicit transformer: BsonTransformer[B]): Document

Applies a transformation function to all values contained in this document. The transformation function produces new values from existing keys associated values.

Applies a transformation function to all values contained in this document. The transformation function produces new values from existing keys associated values.

Value parameters:
f

the transformation to apply

Returns:

the document itself.

def update[B](key: String, value: B)(implicit transformer: BsonTransformer[B]): Unit

Adds a new key/value pair to this map. If the document already contains a mapping for the key, it will be overridden by the new value.

Adds a new key/value pair to this map. If the document already contains a mapping for the key, it will be overridden by the new value.

Value parameters:
key

The key to update

value

The new value

Inherited methods

def +(elems: CanBeBsonElement*): T

Creates a new document containing a new key/value and all the existing key/values.

Creates a new document containing a new key/value and all the existing key/values.

Mapping kv will override existing mappings from this document with the same key.

Value parameters:
elems

the key/value mapping to be added. This can be any valid (String, BsonValue) pair that can be transformed into a BsonElement via BsonMagnets.CanBeBsonElement implicits and any BsonTransformers that are in scope.

Returns:

a new document containing mappings of this document and the mapping kv.

Inherited from:
BaseDocument (hidden)
final def ++[B >: (String, BsonValue)](suffix: IterableOnce[B]): CC[B]
Inherited from:
IterableOps
def -(elems: String*): T

Removes one or more elements to this document and returns a new document.

Removes one or more elements to this document and returns a new document.

Value parameters:
elems

the remaining elements to remove.

Returns:

A new document with the keys removed.

Inherited from:
BaseDocument (hidden)
def --(xs: Iterable[String]): T

Removes a number of elements provided by a traversable object and returns a new document without the removed elements.

Removes a number of elements provided by a traversable object and returns a new document without the removed elements.

Value parameters:
xs

the traversable object consisting of key-value pairs.

Returns:

a new document with the bindings of this document and those from xs.

Inherited from:
BaseDocument (hidden)
final def addString(b: StringBuilder): StringBuilder
Inherited from:
IterableOnceOps
final def addString(b: StringBuilder, sep: String): StringBuilder
Inherited from:
IterableOnceOps
def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
Inherited from:
IterableOnceOps
def apply[TResult <: BsonValue](key: String)(implicit e: DefaultsTo[TResult, BsonValue], ct: ClassTag[TResult]): TResult

Retrieves the value which is associated with the given key or throws a NoSuchElementException.

Retrieves the value which is associated with the given key or throws a NoSuchElementException.

Value parameters:
key

the key

Returns:

the value associated with the given key, or throws NoSuchElementException.

Inherited from:
BaseDocument (hidden)
override def collect[B](pf: PartialFunction[(String, BsonValue), B]): CC[B]
Definition Classes
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
Inherited from:
StrictOptimizedIterableOps
def collectFirst[B](pf: PartialFunction[(String, BsonValue), B]): Option[B]
Inherited from:
IterableOnceOps
def concat[B >: (String, BsonValue)](suffix: IterableOnce[B]): CC[B]
Inherited from:
IterableOps
def contains(key: String): Boolean

Tests whether this map contains a binding for a key

Tests whether this map contains a binding for a key

Value parameters:
key

the key

Returns:

true if there is a binding for key in this document, false otherwise.

Inherited from:
BaseDocument (hidden)
def copyToArray[B >: (String, BsonValue)](xs: Array[B], start: Int, len: Int): Int
Inherited from:
IterableOnceOps
def copyToArray[B >: (String, BsonValue)](xs: Array[B], start: Int): Int
Inherited from:
IterableOnceOps
def copyToArray[B >: (String, BsonValue)](xs: Array[B]): Int
Inherited from:
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: ((String, BsonValue), B) => Boolean): Boolean
Inherited from:
IterableOnceOps
def count(p: ((String, BsonValue)) => Boolean): Int
Inherited from:
IterableOnceOps
def drop(n: Int): C
Inherited from:
IterableOps
override def dropRight(n: Int): C
Definition Classes
StrictOptimizedIterableOps -> IterableOps
Inherited from:
StrictOptimizedIterableOps
def dropWhile(p: ((String, BsonValue)) => Boolean): C
Inherited from:
IterableOps
def exists(p: ((String, BsonValue)) => Boolean): Boolean
Inherited from:
IterableOnceOps
override def filter(pred: ((String, BsonValue)) => Boolean): C
Definition Classes
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
Inherited from:
StrictOptimizedIterableOps
def filterKeys(p: String => Boolean): T

Filters this document by retaining only keys satisfying a predicate.

Filters this document by retaining only keys satisfying a predicate.

Value parameters:
p

the predicate used to test keys

Returns:

a new document consisting only of those key value pairs of this map where the key satisfies the predicate p.

Inherited from:
BaseDocument (hidden)
override def filterNot(pred: ((String, BsonValue)) => Boolean): C
Definition Classes
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
Inherited from:
StrictOptimizedIterableOps
def find(p: ((String, BsonValue)) => Boolean): Option[A]
Inherited from:
IterableOnceOps
override def flatMap[B](f: ((String, BsonValue)) => IterableOnce[B]): CC[B]
Definition Classes
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
Inherited from:
StrictOptimizedIterableOps
override def flatten[B](implicit toIterableOnce: ((String, BsonValue)) => IterableOnce[B]): CC[B]
Definition Classes
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
Inherited from:
StrictOptimizedIterableOps
def fold[A1 >: (String, BsonValue)](z: A1)(op: (A1, A1) => A1): A1
Inherited from:
IterableOnceOps
def foldLeft[B](z: B)(op: (B, (String, BsonValue)) => B): B
Inherited from:
IterableOnceOps
def foldRight[B](z: B)(op: ((String, BsonValue), B) => B): B
Inherited from:
IterableOnceOps
def forall(p: ((String, BsonValue)) => Boolean): Boolean
Inherited from:
IterableOnceOps
def get[TResult <: BsonValue](key: String)(implicit e: DefaultsTo[TResult, BsonValue], ct: ClassTag[TResult]): Option[TResult]

Optionally returns the value associated with a key.

Optionally returns the value associated with a key.

Value parameters:
key

the key we want to lookup

Returns:

an option value containing the value associated with key in this document, or None if none exists.

Inherited from:
BaseDocument (hidden)
def getOrElse[B >: BsonValue](key: String, default: CanBeBsonValue): B

Returns the value associated with a key, or a default value if the key is not contained in the map.

Returns the value associated with a key, or a default value if the key is not contained in the map.

Type parameters:
B

the result type of the default computation.

Value parameters:
default

The default value in case no binding for key is found in the Document. This can be any BsonValue type or any native type that has an implicit BsonTransformer in scope.

key

the key.

Returns:

the value associated with key if it exists, otherwise the result of the default computation.

Inherited from:
BaseDocument (hidden)
def groupBy[K](f: ((String, BsonValue)) => K): Map[K, C]
Inherited from:
IterableOps
def groupMap[K, B](key: ((String, BsonValue)) => K)(f: ((String, BsonValue)) => B): Map[K, CC[B]]
Inherited from:
IterableOps
def groupMapReduce[K, B](key: ((String, BsonValue)) => K)(f: ((String, BsonValue)) => B)(reduce: (B, B) => B): Map[K, B]
Inherited from:
IterableOps
def grouped(size: Int): Iterator[C]
Inherited from:
IterableOps
def head: A
Inherited from:
IterableOps
def headOption: Option[A]
Inherited from:
IterableOps
def init: C
Inherited from:
IterableOps
def inits: Iterator[C]
Inherited from:
IterableOps
def isEmpty: Boolean
Inherited from:
IterableOnceOps
override def isTraversableAgain: Boolean
Definition Classes
IterableOps -> IterableOnceOps
Inherited from:
IterableOps
def iterableFactory: IterableFactory[Iterable]
Inherited from:
Iterable
def iterator: Iterator[(String, BsonValue)]

Creates a new iterator over all key/value pairs in this document

Creates a new iterator over all key/value pairs in this document

Returns:

the new iterator

Inherited from:
BaseDocument (hidden)
def keySet: Set[String]

Collects all keys of this document in a set.

Collects all keys of this document in a set.

Returns:

a set containing all keys of this document.

Inherited from:
BaseDocument (hidden)
def keys: Iterable[String]

Collects all keys of this document in an iterable collection.

Collects all keys of this document in an iterable collection.

Returns:

the keys of this document as an iterable.

Inherited from:
BaseDocument (hidden)
def keysIterator: Iterator[String]

Creates an iterator for all keys.

Creates an iterator for all keys.

Returns:

an iterator over all keys.

Inherited from:
BaseDocument (hidden)
def knownSize: Int
Inherited from:
IterableOnce
def last: A
Inherited from:
IterableOps
def lastOption: Option[A]
Inherited from:
IterableOps
def lazyZip[B](that: Iterable[B]): LazyZip2[A, B, Iterable]
Inherited from:
Iterable
override def map[B](f: ((String, BsonValue)) => B): CC[B]
Definition Classes
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
Inherited from:
StrictOptimizedIterableOps
def max[B >: (String, BsonValue)](implicit ord: Ordering[B]): A
Inherited from:
IterableOnceOps
def maxBy[B](f: ((String, BsonValue)) => B)(implicit cmp: Ordering[B]): A
Inherited from:
IterableOnceOps
def maxByOption[B](f: ((String, BsonValue)) => B)(implicit cmp: Ordering[B]): Option[A]
Inherited from:
IterableOnceOps
def maxOption[B >: (String, BsonValue)](implicit ord: Ordering[B]): Option[A]
Inherited from:
IterableOnceOps
def min[B >: (String, BsonValue)](implicit ord: Ordering[B]): A
Inherited from:
IterableOnceOps
def minBy[B](f: ((String, BsonValue)) => B)(implicit cmp: Ordering[B]): A
Inherited from:
IterableOnceOps
def minByOption[B](f: ((String, BsonValue)) => B)(implicit cmp: Ordering[B]): Option[A]
Inherited from:
IterableOnceOps
def minOption[B >: (String, BsonValue)](implicit ord: Ordering[B]): Option[A]
Inherited from:
IterableOnceOps
final def mkString: String
Inherited from:
IterableOnceOps
final def mkString(sep: String): String
Inherited from:
IterableOnceOps
final def mkString(start: String, sep: String, end: String): String
Inherited from:
IterableOnceOps
def nonEmpty: Boolean
Inherited from:
IterableOnceOps
override def partition(p: ((String, BsonValue)) => Boolean): (C, C)
Definition Classes
StrictOptimizedIterableOps -> IterableOps
Inherited from:
StrictOptimizedIterableOps
override def partitionMap[A1, A2](f: ((String, BsonValue)) => Either[A1, A2]): (CC[A1], CC[A2])
Definition Classes
StrictOptimizedIterableOps -> IterableOps
Inherited from:
StrictOptimizedIterableOps
def product[B >: (String, BsonValue)](implicit num: Numeric[B]): B
Inherited from:
IterableOnceOps
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
def reduce[B >: (String, BsonValue)](op: (B, B) => B): B
Inherited from:
IterableOnceOps
def reduceLeft[B >: (String, BsonValue)](op: (B, (String, BsonValue)) => B): B
Inherited from:
IterableOnceOps
def reduceLeftOption[B >: (String, BsonValue)](op: (B, (String, BsonValue)) => B): Option[B]
Inherited from:
IterableOnceOps
def reduceOption[B >: (String, BsonValue)](op: (B, B) => B): Option[B]
Inherited from:
IterableOnceOps
def reduceRight[B >: (String, BsonValue)](op: ((String, BsonValue), B) => B): B
Inherited from:
IterableOnceOps
def reduceRightOption[B >: (String, BsonValue)](op: ((String, BsonValue), B) => B): Option[B]
Inherited from:
IterableOnceOps
protected def reversed: Iterable[A]
Inherited from:
IterableOnceOps
def scan[B >: (String, BsonValue)](z: B)(op: (B, B) => B): CC[B]
Inherited from:
IterableOps
override def scanLeft[B](z: B)(op: (B, (String, BsonValue)) => B): CC[B]
Definition Classes
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
Inherited from:
StrictOptimizedIterableOps
def scanRight[B](z: B)(op: ((String, BsonValue), B) => B): CC[B]
Inherited from:
IterableOps
def size: Int
Inherited from:
IterableOnceOps
def sizeCompare(that: Iterable[_]): Int
Inherited from:
IterableOps
def sizeCompare(otherSize: Int): Int
Inherited from:
IterableOps
final def sizeIs: SizeCompareOps
Inherited from:
IterableOps
def slice(from: Int, until: Int): C
Inherited from:
IterableOps
def sliding(size: Int, step: Int): Iterator[C]
Inherited from:
IterableOps
def sliding(size: Int): Iterator[C]
Inherited from:
IterableOps
override def span(p: ((String, BsonValue)) => Boolean): (C, C)
Definition Classes
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
Inherited from:
StrictOptimizedIterableOps
override def splitAt(n: Int): (C, C)
Definition Classes
IterableOps -> IterableOnceOps
Inherited from:
IterableOps
def stepper[S <: Stepper[_]](implicit shape: StepperShape[(String, BsonValue), S]): S
Inherited from:
IterableOnce
def sum[B >: (String, BsonValue)](implicit num: Numeric[B]): B
Inherited from:
IterableOnceOps
def tail: C
Inherited from:
IterableOps
def tails: Iterator[C]
Inherited from:
IterableOps
def take(n: Int): C
Inherited from:
IterableOps
override def takeRight(n: Int): C
Definition Classes
StrictOptimizedIterableOps -> IterableOps
Inherited from:
StrictOptimizedIterableOps
def takeWhile(p: ((String, BsonValue)) => Boolean): C
Inherited from:
IterableOps
override def tapEach[U](f: ((String, BsonValue)) => U): C
Definition Classes
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
Inherited from:
StrictOptimizedIterableOps
def to[C1](factory: Factory[(String, BsonValue), C1]): C1
Inherited from:
IterableOnceOps
def toArray[B >: (String, BsonValue) : ClassTag]: Array[B]
Inherited from:
IterableOnceOps
override def toBsonDocument[TDocument](documentClass: Class[TDocument], codecRegistry: CodecRegistry): BsonDocument
Definition Classes
BaseDocument -> Bson
Inherited from:
BaseDocument (hidden)
Definition Classes
BaseDocument
Inherited from:
BaseDocument (hidden)
final def toBuffer[B >: (String, BsonValue)]: Buffer[B]
Inherited from:
IterableOnceOps
def toIndexedSeq: IndexedSeq[A]
Inherited from:
IterableOnceOps
def toJson(settings: JsonWriterSettings): String

Gets a JSON representation of this document using the given JsonWriterSettings.

Gets a JSON representation of this document using the given JsonWriterSettings.

Value parameters:
settings

the JSON writer settings

Returns:

a JSON representation of this document

Inherited from:
BaseDocument (hidden)
def toJson(): String

Gets a JSON representation of this document

Gets a JSON representation of this document

Returns:

a JSON representation of this document

Inherited from:
BaseDocument (hidden)
def toList: List[A]
Inherited from:
IterableOnceOps
def toMap[K, V](implicit ev: (String, BsonValue) <:< (K, V)): Map[K, V]
Inherited from:
IterableOnceOps
def toSeq: Seq[A]
Inherited from:
IterableOnceOps
def toSet[B >: (String, BsonValue)]: Set[B]
Inherited from:
IterableOnceOps
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Returns:

a string representation of the object.

Definition Classes
Iterable -> Any
Inherited from:
Iterable
def toVector: Vector[A]
Inherited from:
IterableOnceOps
def transpose[B](implicit asIterable: ((String, BsonValue)) => Iterable[B]): CC[CC[B]]
Inherited from:
IterableOps
override def unzip[A1, A2](implicit asPair: ((String, BsonValue)) => (A1, A2)): (CC[A1], CC[A2])
Definition Classes
StrictOptimizedIterableOps -> IterableOps
Inherited from:
StrictOptimizedIterableOps
override def unzip3[A1, A2, A3](implicit asTriple: ((String, BsonValue)) => (A1, A2, A3)): (CC[A1], CC[A2], CC[A3])
Definition Classes
StrictOptimizedIterableOps -> IterableOps
Inherited from:
StrictOptimizedIterableOps
def updated(elems: CanBeBsonElement*): T

Creates a new Document consisting of all key/value pairs of the current document plus a new pair of a given key and value.

Creates a new Document consisting of all key/value pairs of the current document plus a new pair of a given key and value.

Value parameters:
elems

The key/values to add. This can be any valid (String, BsonValue) pair that can be transformed into a BsonElement via BsonMagnets.CanBeBsonElement implicits and any BsonTransformers that are in scope.

Returns:

A fresh immutable document with the binding from key to value added to the new document.

Inherited from:
BaseDocument (hidden)
def updated[B](key: String, value: B)(implicit transformer: BsonTransformer[B]): T

Creates a new Document consisting of all key/value pairs of the current document plus a new pair of a given key and value.

Creates a new Document consisting of all key/value pairs of the current document plus a new pair of a given key and value.

Value parameters:
key

The key to add

value

The new value

Returns:

A fresh immutable document with the binding from key to value added to the new document.

Inherited from:
BaseDocument (hidden)
def values: Iterable[BsonValue]

Collects all values of this document in an iterable collection.

Collects all values of this document in an iterable collection.

Returns:

the values of this document as an iterable.

Inherited from:
BaseDocument (hidden)
def valuesIterator: Iterator[BsonValue]

Creates an iterator for all values in this document.

Creates an iterator for all values in this document.

Returns:

an iterator over all values that are associated with some key in this document.

Inherited from:
BaseDocument (hidden)
def view: View[A]
Inherited from:
IterableOps
def withFilter(p: ((String, BsonValue)) => Boolean): WithFilter[A, CC]
Inherited from:
IterableOps
override def zip[B](that: IterableOnce[B]): CC[(A, B)]
Definition Classes
StrictOptimizedIterableOps -> IterableOps
Inherited from:
StrictOptimizedIterableOps
def zipAll[A1 >: (String, BsonValue), B](that: Iterable[B], thisElem: A1, thatElem: B): CC[(A1, B)]
Inherited from:
IterableOps
override def zipWithIndex: CC[(A, Int)]
Definition Classes
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
Inherited from:
StrictOptimizedIterableOps

Deprecated and Inherited methods

def ++:[B >: (String, BsonValue)](that: IterableOnce[B]): CC[B]
Deprecated
[Since version 2.13.0] Use ++ instead of ++: for collections of type Iterable
Inherited from:
IterableOps
final def /:[B](z: B)(op: (B, (String, BsonValue)) => B): B
Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from:
IterableOnceOps
final def :\[B](z: B)(op: ((String, BsonValue), B) => B): B
Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from:
IterableOnceOps
def aggregate[B](z: => B)(seqop: (B, (String, BsonValue)) => B, combop: (B, B) => B): B
Deprecated
[Since version 2.13.0] `aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.
Inherited from:
IterableOnceOps
def companion: IterableFactory[CC]
Deprecated
[Since version 2.13.0] Use iterableFactory instead
Inherited from:
IterableOps
final def copyToBuffer[B >: (String, BsonValue)](dest: Buffer[B]): Unit
Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from:
IterableOnceOps
def hasDefiniteSize: Boolean
Deprecated
[Since version 2.13.0] Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
Inherited from:
IterableOnceOps
final def repr: C
Deprecated
[Since version 2.13.0] Use coll instead of repr in a collection implementation, use the collection value itself from the outside
Inherited from:
IterableOps
def seq: Iterable.this.type
Deprecated
[Since version 2.13.0] Iterable.seq always returns the iterable itself
Inherited from:
Iterable
final def toIterable: Iterable.this.type
Deprecated
[Since version 2.13.7] toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
Iterable
final def toIterator: Iterator[A]
Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from:
IterableOnceOps
final def toStream: Stream[A]
Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from:
IterableOnceOps
final def toTraversable: Iterable[A]
Deprecated
[Since version 2.13.0] toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
IterableOps
def view(from: Int, until: Int): View[A]
Deprecated
[Since version 2.13.0] Use .view.slice(from, until) instead of .view(from, until)
Inherited from:
IterableOps