public final class CustomFilter extends Filter
Modifier and Type | Method and Description |
---|---|
Optional<Boolean> |
getAnd()
Gets the value indicating whether the two conditions have an "and" relationship.
|
FilterType |
getFilterType()
Gets the
FilterType.CUSTOM value. |
FilterOperator |
getOperator()
Gets the operator used by the (first) filter condition.
|
FilterOperator |
getOperator2()
Gets the operator used by the second filter condition.
|
Object |
getValue()
Gets the value used by the (first) filter condition.
|
Object |
getValue2()
Gets the value used by the second filter condition.
|
void |
setAnd(Optional<Boolean> and)
Sets the value indicating whether the two conditions have an "and" relationship.
|
void |
setOperator(FilterOperator operator)
Sets the operator used by the (first) filter condition.
|
void |
setOperator2(FilterOperator operator2)
Sets the operator used by the second filter condition.
|
void |
setValue(Object value)
Sets the value used by the (first) filter condition.
|
void |
setValue2(Object value)
Sets the value used by the second filter condition.
|
String |
toString()
Returns a
String that represents this CustomFilter instance. |
public Optional<Boolean> getAnd()
true
indicates "and", false
indicates "or" and Optional.empty()
indicates that second condition won't be applied.public FilterType getFilterType()
FilterType.CUSTOM
value.getFilterType
in class Filter
FilterType.CUSTOM
value.public FilterOperator getOperator()
public FilterOperator getOperator2()
public Object getValue()
public Object getValue2()
public void setAnd(Optional<Boolean> and)
true
indicates "and", false
indicates "or" and Optional.empty()
indicates that second condition won't be applied.and
- The value indicating whether the two conditions have an "and" relationship.public void setOperator(FilterOperator operator)
operator
- The operator used by the (first) filter condition.public void setOperator2(FilterOperator operator2)
operator2
- The operator used by the second filter condition.public void setValue(Object value)
Sets the value used by the (first) filter condition.
The value's type must be supported in ExcelCell value
(null
and types supported in ExcelFile.supportsType(Class)
).
value
- The value used by the (first) filter condition.UnsupportedOperationException
- Value's type is not supported.public void setValue2(Object value)
Sets the value used by the second filter condition.
The value's type must be supported in ExcelCell vlaue
(null
and types supported in ExcelFile.supportsType(Class)
).
value
- The value used by the second filter condition.UnsupportedOperationException
- Value's type is not supported.public String toString()
String
that represents this CustomFilter
instance.
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
toString
in class Filter
String
that represents this CustomFilter
instance.© GemBox Ltd. — All rights reserved.