public class TagFilter extends Object implements SamRecordFilter
Constructor and Description |
---|
TagFilter(String tag,
List<Object> values)
Constructor for multiple values
|
TagFilter(String tag,
Object value)
Constructor for a single value
|
Modifier and Type | Method and Description |
---|---|
boolean |
filterOut(SAMRecord record)
Determines whether a SAMRecord matches this filter
|
boolean |
filterOut(SAMRecord first,
SAMRecord second)
Determines whether a paired of SAMRecord matches this filter
|
public TagFilter(String tag, Object value)
tag
- the key of the tag to matchvalue
- the value to matchpublic boolean filterOut(SAMRecord record)
filterOut
in interface SamRecordFilter
record
- the SAMRecord to evaluatepublic boolean filterOut(SAMRecord first, SAMRecord second)
filterOut
in interface SamRecordFilter
first
- the first SAMRecord to evaluatesecond
- the second SAMRecord to evaluate