T- Type of the elements to be filtered
@Internal public class SubtypeCondition<T> extends SimpleCondition<T>
conditionwhich filters elements of the given type. An element is filtered out iff it is not assignable to the given subtype of
|Constructor and Description|
|Modifier and Type||Method and Description|
The filter function that evaluates the predicate.
public boolean filter(T value) throws Exception
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.
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.
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.