this.filters = filters.getFilters();
}
findNextMatch();</BUG>
}
<BUG>private boolean filter(SAMRecord samRecord) {
if (filters != null && filters.size() > 0) {
for (Predicate<SAMRecord> filter : filters) {
if (!filter.test(samRecord)) {
return false;
}
}
}
return true;</BUG>
}

public AlignmentIterator(SAMRecordIterator samRecordIterator) {
this(samRecordIterator, null);
}
public AlignmentIterator(SAMRecordIterator samRecordIterator, AlignmentFilters filters) {
this.samRecordIterator = samRecordIterator;
if (filters == null) {
filters = new AlignmentFilters();
}
this.filters = filters;
findNextMatch();
}
private boolean filter(SAMRecord samRecord) {
return filters.apply(samRecord);
}
