question: public boolean hasNext ( ) { if ( this . samIterator == null ) { iterator ( ) ; } while ( complete . isEmpty ( ) && ( ( ! accumulator . isEmpty ( ) ) || samHasMore ( ) || hasRemainingMaskBases ( ) ) ) { final LocusInfo locusInfo = next ( ) ; if ( locusInfo != null ) { complete . add ( 0 , locusInfo ) ; } } return ! complete . isEmpty ( ) ; }
target:  Returns true if there are more LocusInfo objects that can be returned, due to any of the following reasons: 1) there are more aligned reads in the SAM file 2) there are LocusInfos in some stage of accumulation 3) there are loci in the target mask that have yet to be accumulated (even if there are no reads covering them)