package com.github.nikita_volkov.java.iterators;

import java.util.Iterator;

public final class EmptyIterator<a> implements Iterator<a> {
  @Override
  public boolean hasNext() {
    return false;
  }

  @Override
  public a next() {
    return null;
  }
}

@@ -60,24 +60,17 @@
 va.util.
-Iterator
+*
 ;%0A%0Apubli
@@ -229,19 +229,42 @@
     
-return null
+throw new NoSuchElementException()
 ;%0A  

Correct Empty Iterator