Modifier and Type | Field and Description |
---|---|
private java.util.Set<IntFilter> |
filters
Filter set.
|
Constructor and Description |
---|
CsvFilter(java.lang.String pattern)
Constructs a
CsvFilter from a CSV, Comma-Separated Values,
string. |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(int intValue)
Determines whether an Integer matches a CSV integer value.
|
void |
addFilter(IntFilter filter)
Adds a IntFilter to the set.
|
boolean |
equals(java.lang.Object object) |
protected java.util.Set<IntFilter> |
getFilters()
Returns the IntFilters of the filter set.
|
int |
hashCode() |
private final java.util.Set<IntFilter> filters
CsvFilter(java.lang.String pattern)
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.pattern
- the CSV string.java.lang.NumberFormatException
- if a component substring does not
contain a parsable integer.public final void addFilter(IntFilter filter)
filter
- the IntFilter to add.protected java.util.Set<IntFilter> getFilters()
public boolean accept(int intValue)
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object