public final class EmptyIterator<T> extends Object implements Iterator<T>
Need to return an iterator to indicate that there's nothing there? Here's one ready made.
It allows calls to be made without needing to check for a null iterator.
static EmptyIterator
DEFAULT
EmptyIterator()
boolean
hasNext()
T
next()
void
remove()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final EmptyIterator DEFAULT
public EmptyIterator()
public boolean hasNext()
hasNext
Iterator<T>
public T next()
next
public void remove()
remove
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.