Filter

public interface Filter<T extends Object, TResult extends Object>(source)

Functional interface for filtering.

This interface can be used as a functional interface, but when dumped with opekope2.util.dump, it will be ugly.

If the filter evaluates sub-filters, please implement Iterable to show them in the dumped tree.

Parameters

T

The type the filter accepts

TResult

The type the filter returns

Inheritors

Functions

Link copied to clipboard
public abstract FilterResult<? extends TResult> evaluate(T value)

Evaluates the filter with the given value.