com.puppycrawl.tools.checkstyle.filters
class CSVFilter extends Object implements IntFilter
This filter accepts an integer that matches a CSV value, where each value is an integer or a range of integers.
Constructor Summary | |
---|---|
CSVFilter(String aPattern)
Constructs a CSVFilter from a CSV, Comma-Separated Values,
string. |
Method Summary | |
---|---|
boolean | accept(Integer aInt)
Determines whether an Integer matches a CSV integer value. |
void | addFilter(IntFilter aFilter)
Adds a IntFilter to the set. |
boolean | equals(Object aObject) {@inheritDoc} |
protected Set | getFilters()
Returns the IntFilters of the filter set. |
int | hashCode() {@inheritDoc} |
String | toString() {@inheritDoc} |
CSVFilter
from a CSV, Comma-Separated Values,
string. Each value is an integer, or a range of integers. A range of
integers is of the form integer-integer, such as 1-10.
Note: integers must be non-negative.Parameters: aPattern the CSV string.
Throws: NumberFormatException if a component substring does not contain a parsable integer.
Parameters: aInt the Integer to check.
Returns: true if aInt is an Integer that matches a CSV value.
Parameters: aFilter the IntFilter to add.
Returns: the IntFilters of the filter set.