kbox-android / ch.tutteli.kbox / DefaultPeekingIterator / peek

peek

@Synchronized fun peek(): T (source)

Overrides PeekingIterator.peek

Returns the next element without consuming it.

Exceptions

NoSuchElementException - in case there is no next element.

Return
the next element without consuming it