ContainingFilter

public final class ContainingFilter<TInput extends Object> implements IFilter<TInput, Unit>, Iterable<TInput>(source)

A filter, which only returns a non-null value, if the given collection contains the input.

Parameters

TInput

The type the filter accepts

collection

The collection to check for the input

Constructors

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

Functions

Link copied to clipboard
public Unit evaluate(TInput input)

Evaluates the filter with the given value.

Link copied to clipboard
Link copied to clipboard
public String toString()

Inherited functions

Link copied to clipboard
public String dump()

Formats the current filter as a tree, and returns the formatted string.

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