T
- Type of the elements to be filtered@Internal public class SubtypeCondition<T> extends SimpleCondition<T>
condition
which filters elements of the given type. An element is
filtered out iff it is not assignable to the given subtype of T
.IterativeCondition.Context<T>
Constructor and Description |
---|
SubtypeCondition(Class<? extends T> subtype) |
Modifier and Type | Method and Description |
---|---|
boolean |
filter(T value)
The filter function that evaluates the predicate.
|
filter, of
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.
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.