/** Returns true if there is another record available post-downsampling, false otherwise. */ @Override public boolean hasNext() { return this.nextRecord != null || advance(); }
/** Returns true if there is another record available post-downsampling, false otherwise. */ @Override public boolean hasNext() { return this.nextRecord != null || advance(); }
/** Returns the next record from the iterator, or throws an exception if there is no next record. */ @Override public SAMRecord next() { if (this.nextRecord == null) { throw new NoSuchElementException("Call to next() when hasNext() == false"); } else { final SAMRecord retval = this.nextRecord; advance(); return retval; } }
/** Returns the next record from the iterator, or throws an exception if there is no next record. */ @Override public SAMRecord next() { if (this.nextRecord == null) { throw new NoSuchElementException("Call to next() when hasNext() == false"); } else { final SAMRecord retval = this.nextRecord; advance(); return retval; } }