This commit is contained in:
Gary Gregory 2024-06-23 08:11:24 -04:00
parent 969bfd2fe7
commit f82b597b75
1 changed files with 20 additions and 1 deletions

View File

@ -31,15 +31,34 @@ public abstract class AbstractEmptyMapIterator<K, V> extends AbstractEmptyIterat
public AbstractEmptyMapIterator() {
}
/**
* Always throws IllegalStateException.
*
* @return Always throws IllegalStateException.
* @throws IllegalStateException Always thrown.
*/
public K getKey() {
throw new IllegalStateException("Iterator contains no elements");
}
/**
* Always throws IllegalStateException.
*
* @return Always throws IllegalStateException.
* @throws IllegalStateException Always thrown.
*/
public V getValue() {
throw new IllegalStateException("Iterator contains no elements");
}
public V setValue(final V value) {
/**
* Always throws IllegalStateException.
*
* @param ignored ignored.
* @return Always throws IllegalStateException.
* @throws IllegalStateException Always thrown.
*/
public V setValue(final V ignored) {
throw new IllegalStateException("Iterator contains no elements");
}