T - type of the valuespublic class RangeFilter<T extends Comparable<T>> extends Filter<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
RangeFilter.Range<T>
Range of allowed values of a field represented as [min, max) where min is the inclusive minimum value
and max is the exclusive maximum value.
|
| Constructor and Description |
|---|
RangeFilter(String fieldName,
RangeFilter.Range<T> range) |
| 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) |
String |
getError() |
RangeFilter.Range |
getRange() |
int |
hashCode() |
String |
toString() |
getFilterTypeErrorsgetFieldNamepublic RangeFilter(String fieldName, RangeFilter.Range<T> range)
public RangeFilter.Range getRange()
public boolean apply(T value)
Filterapply in class Filter<T extends Comparable<T>>value - value of the fieldtrue if the given value is larger or equal to min if min is not null
and smaller than max if max is not null, false otherwise@Nullable public String getError()
getError in class ReportGenerationRequest.Fieldnull if
no such error exists.public 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.