uses #hasnext to try to fetch the next item and returns itif found , otherwise it throws a nosuchelementexception . concode_field_sep T nextObject concode_elem_sep boolean hasFetchedNext concode_field_sep T fetchNextOrNull concode_elem_sep boolean hasNext concode_elem_sep void remove concode_elem_sep T peek
T function ( ) { if ( ! hasNext ( ) ) { throw new NoSuchElementException ( ) ; } T loc0 = nextObject ; nextObject = null ; hasFetchedNext = false ; return loc0 ; }