| 构造器和说明 |
|---|
EmptyIterator() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E> EmptyIterator<E> |
get()
Gets a singleton instance of the empty iterator.
|
boolean |
hasNext()
Always returns false, since this iterator is empty.
|
Iterator<E> |
iterator() |
E |
next()
Always throws a
NoSuchElementException. |
void |
remove()
Throws a
UnsupportedOperationException. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEach, spliteratorpublic static <E> EmptyIterator<E> get()
E - The type of the objects (not) returned by the iterator.public boolean hasNext()
hasNext 在接口中 Iterator<E>Iterator.hasNext()public E next()
NoSuchElementException.next 在接口中 Iterator<E>Iterator.next()public void remove()
UnsupportedOperationException.remove 在接口中 Iterator<E>Iterator.remove()Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.