T - type of the valuespublic abstract class Filter<T> extends ReportGenerationRequest.Field
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
apply(T value)
Checks whether the given value of the field is allowed to be included in the report.
|
protected List<String> |
getFilterTypeErrors(ReportField.FilterType filterType)
Gets errors in the filter of a given filter type that are not allowed in a report generation request.
|
equals, getError, getFieldName, hashCodepublic Filter(String fieldName)
public abstract boolean apply(T value)
value - value of the fieldtrue if the value is allowed, false otherwise.protected List<String> getFilterTypeErrors(ReportField.FilterType filterType)
filterType - type of the filterCopyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.