Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jun 23, 2024
1 parent 969bfd2 commit f82b597
Showing 1 changed file with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit f82b597

Please sign in to comment.