Iterator is a state-ful instance that enables you to check whether it has
more elements (via
hasNext()) and moves to the next one if any (via
Iterable is a representation of literally iterable elements. An
Iterable can generate multiple valid
Suppress false positives by adding the suppression annotation
@SuppressWarnings("IterableAndIterator") to the enclosing element.