|
fun <T> MongoIterable<T>.all(predicate: (T) -> Boolean): Boolean |
|
fun <T> MongoIterable<T>.any(): Boolean
fun <T> MongoIterable<T>.any(predicate: (T) -> Boolean): Boolean |
|
fun <T> MongoIterable<T>.asSequence(): Sequence<T> |
|
fun <T, K, V> MongoIterable<T>.associate(transform: (T) -> Pair<K, V>): Map<K, V> |
|
fun <T, K> MongoIterable<T>.associateBy(keySelector: (T) -> K): Map<K, T>
fun <T, K, V> MongoIterable<T>.associateBy(keySelector: (T) -> K, valueTransform: (T) -> V): Map<K, V> |
|
fun <T, K, M : MutableMap<in K, in T>> MongoIterable<T>.associateByTo(destination: M, keySelector: (T) -> K): M
fun <T, K, V, M : MutableMap<in K, in V>> MongoIterable<T>.associateByTo(destination: M, keySelector: (T) -> K, valueTransform: (T) -> V): M |
|
fun <T, K, V, M : MutableMap<in K, in V>> MongoIterable<T>.associateTo(destination: M, transform: (T) -> Pair<K, V>): M |
|
fun <T> MongoIterable<T>.chunked(size: Int): List<List<T>>
fun <T, R> MongoIterable<T>.chunked(size: Int, transform: (List<T>) -> R): List<R> |
|
operator fun <T> MongoIterable<T>.contains(element: T): Boolean |
|
fun <T> MongoIterable<T>.count(): Int
fun <T> MongoIterable<T>.count(predicate: (T) -> Boolean): Int |
|
fun <T> MongoIterable<T>.distinct(): List<T> |
|
fun <T, K> MongoIterable<T>.distinctBy(selector: (T) -> K): List<T> |
|
fun <T> MongoIterable<T>.drop(n: Int): List<T> |
|
fun <T> MongoIterable<T>.dropWhile(predicate: (T) -> Boolean): List<T> |
|
fun <T> MongoIterable<T>.elementAt(index: Int): T |
|
fun <T> MongoIterable<T>.elementAtOrElse(index: Int, defaultValue: (Int) -> T): T |
|
fun <T> MongoIterable<T>.elementAtOrNull(index: Int): T? |
|
fun <T> MongoIterable<T>.filter(predicate: (T) -> Boolean): List<T> |
|
fun <T> MongoIterable<T>.filterIndexed(predicate: (index: Int, T) -> Boolean): List<T> |
|
fun <T, C : MutableCollection<in T>> MongoIterable<T>.filterIndexedTo(destination: C, predicate: (index: Int, T) -> Boolean): C |
|
fun <R> MongoIterable<*>.filterIsInstance(): List<R>
fun <R> MongoIterable<*>.filterIsInstance(klass: Class<R>): List<R> |
|
fun <R, C : MutableCollection<in R>> MongoIterable<*>.filterIsInstanceTo(destination: C): C
fun <C : MutableCollection<in R>, R> MongoIterable<*>.filterIsInstanceTo(destination: C, klass: Class<R>): C |
|
fun <T> MongoIterable<T>.filterNot(predicate: (T) -> Boolean): List<T> |
|
fun <T, C : MutableCollection<in T>> MongoIterable<T>.filterNotTo(destination: C, predicate: (T) -> Boolean): C |
|
fun <T, C : MutableCollection<in T>> MongoIterable<T>.filterTo(destination: C, predicate: (T) -> Boolean): C |
|
fun <T> MongoIterable<T>.find(predicate: (T) -> Boolean): T? |
|
fun <T> MongoIterable<T>.findLast(predicate: (T) -> Boolean): T? |
|
fun <T> MongoIterable<T>.first(predicate: (T) -> Boolean): T |
|
fun <T> MongoIterable<T>.firstOrNull(): T?
fun <T> MongoIterable<T>.firstOrNull(predicate: (T) -> Boolean): T? |
|
fun <T, R> MongoIterable<T>.flatMap(transform: (T) -> MongoIterable<R>): List<R> |
|
fun <T, R, C : MutableCollection<in R>> MongoIterable<T>.flatMapTo(destination: C, transform: (T) -> MongoIterable<R>): C |
|
fun <T, R> MongoIterable<T>.fold(initial: R, operation: (acc: R, T) -> R): R |
|
fun <T, R> MongoIterable<T>.foldIndexed(initial: R, operation: (index: Int, acc: R, T) -> R): R |
|
fun <T> MongoIterable<T>.forEach(action: (T) -> Unit): Unit |
|
fun <T> MongoIterable<T>.forEachIndexed(action: (index: Int, T) -> Unit): Unit |
|
fun <T, K> MongoIterable<T>.groupBy(keySelector: (T) -> K): Map<K, List<T>>
fun <T, K, V> MongoIterable<T>.groupBy(keySelector: (T) -> K, valueTransform: (T) -> V): Map<K, List<V>> |
|
fun <T, K, M : MutableMap<in K, MutableList<T>>> MongoIterable<T>.groupByTo(destination: M, keySelector: (T) -> K): M
fun <T, K, V, M : MutableMap<in K, MutableList<V>>> MongoIterable<T>.groupByTo(destination: M, keySelector: (T) -> K, valueTransform: (T) -> V): M |
(Since: 1.1 ) |
fun <T, K> MongoIterable<T>.groupingBy(keySelector: (T) -> K): Grouping<T, K> |
|
fun <T> MongoIterable<T>.indexOf(element: T): Int |
|
fun <T> MongoIterable<T>.indexOfFirst(predicate: (T) -> Boolean): Int |
|
fun <T> MongoIterable<T>.indexOfLast(predicate: (T) -> Boolean): Int |
|
infix fun <T> MongoIterable<T>.intersect(other: Iterable<T>): Set<T> |
|
fun <T, A : Appendable> MongoIterable<T>.joinTo(buffer: A, separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: ((T) -> CharSequence)? = null): A |
|
fun <T> MongoIterable<T>.joinToString(separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: ((T) -> CharSequence)? = null): String |
|
fun <T> MongoIterable<T>.kCursor(): MongoCursorIterable<T> |
|
fun <T> MongoIterable<T>.last(): T
fun <T> MongoIterable<T>.last(predicate: (T) -> Boolean): T |
|
fun <T> MongoIterable<T>.lastIndexOf(element: T): Int |
|
fun <T> MongoIterable<T>.lastOrNull(): T?
fun <T> MongoIterable<T>.lastOrNull(predicate: (T) -> Boolean): T? |
|
fun <T, R> MongoIterable<T>.map(transform: (T) -> R): List<R> |
|
fun <T, R> MongoIterable<T>.mapIndexed(transform: (index: Int, T) -> R): List<R> |
|
fun <T, R : Any> MongoIterable<T>.mapIndexedNotNull(transform: (index: Int, T) -> R?): List<R> |
|
fun <T, R : Any, C : MutableCollection<in R>> MongoIterable<T>.mapIndexedNotNullTo(destination: C, transform: (index: Int, T) -> R?): C |
|
fun <T, R, C : MutableCollection<in R>> MongoIterable<T>.mapIndexedTo(destination: C, transform: (index: Int, T) -> R): C |
|
fun <T, R : Any> MongoIterable<T>.mapNotNull(transform: (T) -> R?): List<R> |
|
fun <T, R : Any, C : MutableCollection<in R>> MongoIterable<T>.mapNotNullTo(destination: C, transform: (T) -> R?): C |
|
fun <T, R, C : MutableCollection<in R>> MongoIterable<T>.mapTo(destination: C, transform: (T) -> R): C |
|
fun <T, R : Comparable<R>> MongoIterable<T>.maxBy(selector: (T) -> R): T? |
|
fun <T, R : Comparable<R>> MongoIterable<T>.maxByOrNull(selector: (T) -> R): T? |
|
fun <T> MongoIterable<T>.maxWith(comparator: <ERROR CLASS><in T>): T? |
|
fun <T> MongoIterable<T>.maxWithOrNull(comparator: <ERROR CLASS><in T>): T? |
|
fun <T, R : Comparable<R>> MongoIterable<T>.minBy(selector: (T) -> R): T? |
|
fun <T, R : Comparable<R>> MongoIterable<T>.minByOrNull(selector: (T) -> R): T? |
|
operator fun <T> MongoIterable<T>.minus(element: T): List<T>
operator fun <T> MongoIterable<T>.minus(elements: Array<out T>): List<T>
operator fun <T> MongoIterable<T>.minus(elements: Iterable<T>): List<T>
operator fun <T> MongoIterable<T>.minus(elements: Sequence<T>): List<T> |
|
fun <T> MongoIterable<T>.minusElement(element: T): List<T> |
|
fun <T> MongoIterable<T>.minWith(comparator: <ERROR CLASS><in T>): T? |
|
fun <T> MongoIterable<T>.minWithOrNull(comparator: <ERROR CLASS><in T>): T? |
|
fun <T> MongoIterable<T>.none(): Boolean
fun <T> MongoIterable<T>.none(predicate: (T) -> Boolean): Boolean |
|
fun <T> MongoIterable<T>.partition(predicate: (T) -> Boolean): Pair<List<T>, List<T>> |
|
operator fun <T> MongoIterable<T>.plus(element: T): List<T>
operator fun <T> MongoIterable<T>.plus(elements: Array<out T>): List<T>
operator fun <T> MongoIterable<T>.plus(elements: Iterable<T>): List<T>
operator fun <T> MongoIterable<T>.plus(elements: Sequence<T>): List<T> |
|
fun <T> MongoIterable<T>.plusElement(element: T): List<T> |
|
fun <S, T : S> MongoIterable<T>.reduce(operation: (acc: S, T) -> S): S |
|
fun <S, T : S> MongoIterable<T>.reduceIndexed(operation: (index: Int, acc: S, T) -> S): S |
|
fun <T> MongoIterable<T>.reversed(): List<T> |
|
fun <T> MongoIterable<T>.shuffled(): List<T>
fun <T> MongoIterable<T>.shuffled(random: Random): List<T> |
|
fun <T> MongoIterable<T>.single(): T
fun <T> MongoIterable<T>.single(predicate: (T) -> Boolean): T |
|
fun <T> MongoIterable<T>.singleOrNull(): T?
fun <T> MongoIterable<T>.singleOrNull(predicate: (T) -> Boolean): T? |
|
fun <T, R : Comparable<R>> MongoIterable<T>.sortedBy(selector: (T) -> R?): List<T> |
|
fun <T, R : Comparable<R>> MongoIterable<T>.sortedByDescending(selector: (T) -> R?): List<T> |
|
fun <T> MongoIterable<T>.sortedWith(comparator: <ERROR CLASS><in T>): List<T> |
|
infix fun <T> MongoIterable<T>.subtract(other: Iterable<T>): Set<T> |
|
fun <T> MongoIterable<T>.sumBy(selector: (T) -> Int): Int |
|
fun <T> MongoIterable<T>.sumByDouble(selector: (T) -> Double): Double |
|
fun <T> MongoIterable<T>.take(n: Int): List<T> |
|
fun <T> MongoIterable<T>.takeWhile(predicate: (T) -> Boolean): List<T> |
|
fun <T, C : MutableCollection<in T>> MongoIterable<T>.toCollection(destination: C): C |
|
fun <T> MongoIterable<T>.toHashSet(): <ERROR CLASS><T> |
|
fun <T> MongoIterable<T>.toList(): List<T> |
|
fun <T> MongoIterable<T>.toMutableList(): MutableList<T> |
|
fun <T> MongoIterable<T>.toMutableSet(): MutableSet<T> |
|
fun <T> MongoIterable<T>.toSet(): Set<T> |
|
fun <T> MongoIterable<T>.toSortedSet(comparator: <ERROR CLASS><in T>): SortedSet<T> |
|
infix fun <T> MongoIterable<T>.union(other: Iterable<T>): Set<T> |
|
fun <T, R> MongoIterable<T>.useCursor(block: (Iterable<T>) -> R): R |
|
fun <T> MongoIterable<T>.windowed(size: Int, step: Int = 1, partialWindows: Boolean = false): List<List<T>>
fun <T, R> MongoIterable<T>.windowed(size: Int, step: Int = 1, partialWindows: Boolean = false, transform: (List<T>) -> R): List<R> |
|
fun <T> MongoIterable<T>.withIndex(): MongoIterable<IndexedValue<T>>
fun <T> MongoCursor<T>.withIndex(): MongoCursor<IndexedValue<T>> |
|
infix fun <T, R> MongoIterable<T>.zip(other: Array<out R>): List<Pair<T, R>>
fun <T, R, V> MongoIterable<T>.zip(other: Array<out R>, transform: (a: T, b: R) -> V): List<V>
infix fun <T, R> MongoIterable<T>.zip(other: Iterable<R>): List<Pair<T, R>>
fun <T, R, V> MongoIterable<T>.zip(other: Iterable<R>, transform: (a: T, b: R) -> V): List<V> |
|
fun <T> MongoIterable<T>.zipWithNext(): List<Pair<T, T>>
fun <T, R> MongoIterable<T>.zipWithNext(transform: (a: T, b: T) -> R): List<R> |