T - type of the valuespublic class ValueFilter<T> extends Filter<T>
| Constructor and Description |
|---|
ValueFilter(String fieldName,
Set<T> whitelist,
Set<T> blacklist) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(T value)
Checks whether the given value of the field is allowed to be included in the report.
|
boolean |
equals(Object o) |
Set<T> |
getBlacklist() |
String |
getError() |
Set<T> |
getWhitelist() |
int |
hashCode() |
String |
toString() |
getFilterTypeErrorsgetFieldNamepublic Set<T> getWhitelist()
public Set<T> getBlacklist()
@Nullable public String getError()
getError in class ReportGenerationRequest.Fieldnull if
no such error exists.public boolean apply(T value)
Filterpublic int hashCode()
hashCode in class ReportGenerationRequest.Fieldpublic boolean equals(Object o)
equals in class ReportGenerationRequest.FieldCopyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.