Class SubtypeCondition<T>

    • Constructor Detail

      • SubtypeCondition

        public SubtypeCondition​(Class<? extends T> subtype)
    • Method Detail

      • filter

        public boolean filter​(T value)
                       throws Exception
        Description copied from interface: FilterFunction
        The filter function that evaluates the predicate.

        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.

        Parameters:
        value - The value to be filtered.
        Returns:
        True for values that should be retained, false for values to be filtered out.
        Throws:
        Exception - This method may throw exceptions. Throwing an exception will cause the operation to fail and may trigger recovery.