Class ValueMatch<T>
java.lang.Object
com.northconcepts.datapipeline.filter.FieldFilterRule
com.northconcepts.datapipeline.filter.rule.ValueMatch<T>
- All Implemented Interfaces:
Cloneable
A
FieldFilterRule that allows fields whose value equals one of its values; values are compared with
equals, so their Java types must match (for example 1 and 1L differ).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(DataReader source, String fieldName) Adds the named field's value from every record insource, which is opened, read to the end and closed here.booleanReturns true if the given field satisfies this rule; called byFieldFilterwith each field it checks.clone()booleanget(int index) intgetCount()Returns the live list of values to match; changes to it affect this rule.inthashCode()toString()Methods inherited from class com.northconcepts.datapipeline.filter.FieldFilterRule
getFieldFilter
-
Constructor Details
-
ValueMatch
public ValueMatch() -
ValueMatch
-
ValueMatch
-
-
Method Details
-
clone
-
getCount
public int getCount() -
get
-
getValues
Returns the live list of values to match; changes to it affect this rule. -
allow
Description copied from class:FieldFilterRuleReturns true if the given field satisfies this rule; called byFieldFilterwith each field it checks.- Specified by:
allowin classFieldFilterRule
-
toString
-
add
-
add
Adds the named field's value from every record insource, which is opened, read to the end and closed here. -
equals
-
hashCode
public int hashCode()
-