T
- the item type.public final class EmptyIterator<T> extends java.lang.Object implements BoundedIterator<T>
EmptyIterator
class implements an iterator over an empty collection.Modifier and Type | Method and Description |
---|---|
BoundedIterator<T> |
clone()
Creates a copy of the iterator.
|
static <T> EmptyIterator<T> |
get() |
boolean |
hasValue()
Checks if the iterator is not exhausted (a value is available).
|
void |
init()
Initializes the iterator.
|
void |
next()
Makes an iteration.
|
int |
size()
Returns the size of the collection of the iterated items.
|
void |
stop()
Stops the iterator.
|
T |
value()
Returns the current value of the iterator.
|
public static <T> EmptyIterator<T> get()
public void init()
Iterator
public boolean hasValue()
Iterator
public T value()
Iterator
public void next()
Iterator
public void stop()
Iterator
public int size()
BoundedIterator
size
in interface BoundedIterator<T>