public class CompoundFilter extends ArrayList<VariantContextFilter> implements VariantContextFilter
modCount
Constructor and Description |
---|
CompoundFilter(boolean requireAll)
A constructor that will determine if this compound filter will require that *all* the included filters pass
or *some* of them pass (depending on the requireAll parameter in the constructor).
|
Modifier and Type | Method and Description |
---|---|
boolean |
test(VariantContext variantContext)
Determines whether a VariantContext matches this filter
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public CompoundFilter(boolean requireAll)
requireAll
- a boolean parameter determining whether this filter requires all its elements to pass (true) for
it to pass, or only one (false). If there are no variantfilters it will return true.public boolean test(VariantContext variantContext)
VariantContextFilter
test
in interface VariantContextFilter
variantContext
- the record to examine against the sub-filters