T
- Type of the element to filterOrCondition
instead.
A filter function which combines two filter functions with a logical or. Thus, the filter function only returns true, iff at least one of the filter functions holds true.
@Deprecated public class OrFilterFunction<T> extends Object implements FilterFunction<T>
Constructor and Description |
---|
OrFilterFunction(FilterFunction<T> left,
FilterFunction<T> right)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
filter(T value)
Deprecated.
The filter function that evaluates the predicate.
|
FilterFunction<T> |
getLeft()
Deprecated.
|
FilterFunction<T> |
getRight()
Deprecated.
|
public OrFilterFunction(FilterFunction<T> left, FilterFunction<T> right)
public boolean filter(T value) throws Exception
FilterFunction
IMPORTANT: The system assumes that the function does not modify the elements on which the predicate is applied. Violating this assumption can lead to incorrect results.
filter
in interface FilterFunction<T>
value
- The value to be filtered.Exception
- This method may throw exceptions. Throwing an exception will cause the operation
to fail and may trigger recovery.public FilterFunction<T> getLeft()
public FilterFunction<T> getRight()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.