public class EnumFieldFilter extends DataFilter
| Constructor and Description |
|---|
EnumFieldFilter(java.lang.String fieldName,
java.lang.String fieldValue)
Instantiates a new EnumFieldFilter with the specified field and value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(DataRecord record)
Return whether the filter accepts the data record.
|
boolean |
equals(java.lang.Object obj)
Return whether this EnumFieldFilter matches another object
|
java.lang.String |
getFieldName()
Get the field name for this field filter
|
java.lang.String |
getValue()
Get the field value for this field filter
|
int |
hashCode()
Return the hash code for this EnumFieldFilter
|
java.lang.String |
toString()
Return a string representation of this filter
|
filterRecordspublic EnumFieldFilter(java.lang.String fieldName,
java.lang.String fieldValue)
fieldName - the field namefieldValue - the field valuepublic boolean accept(DataRecord record)
accept in class DataFilterrecord - the recordpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to comparepublic java.lang.String getFieldName()
public java.lang.String getValue()
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object