Class AbstractEmptyMapIterator<K,V>
java.lang.Object
org.apache.commons.collections4.iterators.AbstractEmptyIterator<K>
org.apache.commons.collections4.iterators.AbstractEmptyMapIterator<K,V>
- Type Parameters:
K- the type of keysV- the type of mapped values
- All Implemented Interfaces:
Iterator<K>,ResettableIterator<K>
- Direct Known Subclasses:
EmptyMapIterator,EmptyOrderedMapIterator
Provides an implementation of an empty map iterator.
- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.collections4.iterators.AbstractEmptyIterator
add, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, reset, setMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
AbstractEmptyMapIterator
public AbstractEmptyMapIterator()Create a new AbstractEmptyMapIterator.
-
-
Method Details
-
getKey
Always throws IllegalStateException.- Returns:
- Always throws IllegalStateException.
- Throws:
IllegalStateException- Always thrown.
-
getValue
Always throws IllegalStateException.- Returns:
- Always throws IllegalStateException.
- Throws:
IllegalStateException- Always thrown.
-
setValue
Always throws IllegalStateException.- Parameters:
ignored- ignored.- Returns:
- Always throws IllegalStateException.
- Throws:
IllegalStateException- Always thrown.
-