Skip to content

EmptyIterator


final class EmptyIterator<Type> < Iterator<Type>

Iterator over an arbitrary empty container.

Factory Functions

Name Description
EmptyIterator Create an EmptyIterator.

Member Functions

Name Description
hasNext Is there a next element?
next Get the next element.

Factory Function Details

function EmptyIterator<Type>() -> EmptyIterator<Type>

Create an EmptyIterator.

Member Function Details

hasNext

function hasNext() -> Boolean

Is there a next element?

next

function next() -> Type

Get the next element.