class CsvFilterElement extends java.lang.Object implements IntFilterElement
This filter element is immutable and accepts an integer that matches a CSV value, where each value is an integer or a range of integers.
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<IntFilterElement> |
filters
Filter set.
|
| Constructor and Description |
|---|
CsvFilterElement(java.lang.String pattern)
Constructs a
CsvFilterElement 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.
|
private void |
addFilter(IntFilterElement filter)
Adds a IntFilterElement to the set.
|
boolean |
equals(java.lang.Object object) |
protected java.util.Set<IntFilterElement> |
getFilters()
Returns the IntFilters of the filter set.
|
int |
hashCode() |
private final java.util.Set<IntFilterElement> filters
CsvFilterElement(java.lang.String pattern)
CsvFilterElement 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.private void addFilter(IntFilterElement filter)
filter - the IntFilterElement to add.protected java.util.Set<IntFilterElement> getFilters()
public boolean accept(int intValue)
accept in interface IntFilterElementintValue - the Integer to check.public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2001-2022. All Rights Reserved.