/** * override the hasNext, to incorportate our limiting factor * * @return */ public boolean hasNext() { boolean res = super.hasNext(); if (!seeked) { return res; } if (res && matches(this.next)) { return true; } return false; }
if (!matches(rec)) { throw new ReviewedGATKException("The next read doesn't match");