code: public Optional<E> getNext() {
          return Optional.of(currentIndex).filter(getLess(linkedList.size() - 1))
                  .map(i -> linkedList.get(++currentIndex));
      }
docs: Gets next.
  
  @return the next