checkIterator
Checks that the provided iterator is well-formed.
is read-only: does not allow
removereturns
expectedSizenumber of elementsdoes not return null elements, unless
allowNullis true.throws NoSuchElementException if
nextis called afterhasNextreturns false.
Checks that the provided iterator is well-formed.
is read-only: does not allow
removedoes not return null elements.
throws NoSuchElementException if
nextis called afterhasNextreturns false.