# EmptySizedIterable

class EmptySizedIterable<out T> : SizedIterable<T> , Iterator<T>

Represents a SizedIterable that is empty and cannot be iterated over.

## Constructors

EmptySizedIterable
Link copied to clipboard
constructor()

## Functions

appendTo
Link copied to clipboard
fun <T> Iterable<T>.appendTo(builder: QueryBuilder, separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", transform: QueryBuilder.(T) -> Unit): QueryBuilder

Appends all the elements separated using separator and using the given prefix and postfix if supplied.

copy
Link copied to clipboard
open override fun copy(): SizedIterable<T>

Returns a new SizedIterable that is a copy of the original.

count
Link copied to clipboard
open override fun count(): Long

Returns the number of elements stored.

empty
Link copied to clipboard
open override fun empty(): Boolean

Whether there are no elements stored.

forEach
Link copied to clipboard
open fun forEach(p0: Consumer<in T>)
forEachRemaining
Link copied to clipboard
open fun forEachRemaining(p0: Consumer<in T>)
forUpdate
Link copied to clipboard
open fun forUpdate(option: ForUpdateOption = ForUpdateOption.ForUpdate): SizedIterable<T>

Returns a new SizedIterable with a locking read for the elements according to the rules specified by option.

hasNext
Link copied to clipboard
open operator override fun hasNext(): Boolean
iterator
Link copied to clipboard
open operator override fun iterator(): Iterator<T>
limit
Link copied to clipboard
open override fun limit(count: Int): SizedIterable<T>

Returns a new SizedIterable containing only count elements.

open override fun limit(n: Int, offset: Long): SizedIterable<T>
mapLazy
Link copied to clipboard
infix fun <T, R> SizedIterable<T>.mapLazy(f: (T) -> R): SizedIterable<R>

Returns a SizedIterable containing the lazily evaluated results of applying the function f to each original element.

next
Link copied to clipboard
open operator override fun next(): T
notForUpdate
Link copied to clipboard
open fun notForUpdate(): SizedIterable<T>

Returns a new SizedIterable without any locking read for the elements.

offset
Link copied to clipboard
open override fun offset(start: Long): SizedIterable<T>

Returns a new SizedIterable containing only elements starting from the specified start.

orderBy
Link copied to clipboard
open override fun orderBy(vararg order: Pair<Expression<*>, SortOrder>): SizedIterable<T>

Returns a new SizedIterable with the elements sorted according to the specified expression order.

spliterator
Link copied to clipboard
open fun spliterator(): Spliterator<T>