ContainingFilter

public final class ContainingFilter<T extends Object> implements Filter<T, Unit>, Iterable<T>(source)

A filter, which only yields a matching result if the given collection contains the input. This filter never skips.

Parameters

T

The type the filter accepts

collection

The collection to check for the input

Constructors

Link copied to clipboard
public ContainingFilter<T> ContainingFilter<T extends Any>(Collection<T> collection)

Functions

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

Evaluates the filter with the given value.

Link copied to clipboard
public Iterator<T> iterator()
Link copied to clipboard
public String toString()

Inherited functions

Link copied to clipboard
public final String dump()

Formats a filter chain as a tree with ASCII characters, and returns the formatted string.

Link copied to clipboard
public Unit forEach(Consumer<? super T> p0)
Link copied to clipboard