public class TagFilter extends java.lang.Object implements SamRecordFilter
Constructor and Description |
---|
TagFilter(java.lang.String tag,
java.util.List<java.lang.Object> values)
Constructor for multiple values
|
TagFilter(java.lang.String tag,
java.lang.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(java.lang.String tag, java.lang.Object value)
tag
- the key of the tag to matchvalue
- the value to matchpublic TagFilter(java.lang.String tag, java.util.List<java.lang.Object> values)
tag
- the key of the tag to matchvalues
- the matching valuespublic 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