Package-level declarations

Types

Link copied to clipboard
public final class ConditionalFilter<TInput extends Object, TResult extends Object> implements IFilter<TInput, TResult>, Iterable<IFilter<TInput, TResult>>

A filter, which forwards evaluation to the given filter, if the check function returns true. Otherwise, the result will be falseResult.

Link copied to clipboard
public final class ConjunctionFilter<TInput extends Object> implements IFilter<TInput, Unit>, Iterable<IFilter<TInput, ?>>

A filter, which applies the logical AND operation between the given filters, and returns a non-null value, if all the sub-filters returned a non-null value, or null, if any of the sub-filters returned null.

Link copied to clipboard
public final class ContainingFilter<TInput extends Object> implements IFilter<TInput, Unit>, Iterable<TInput>

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

Link copied to clipboard
public final class DisjunctionFilter<TInput extends Object> implements IFilter<TInput, Unit>, Iterable<IFilter<TInput, ?>>

A filter, which applies the logical OR operation between the given filters and returns a non-null value, if any of the sub-filters returned a non-null value, or null, if all the sub-filters returned null.

Link copied to clipboard
public final class EqualityFilter<TInput extends Object> implements IFilter<TInput, Unit>

A filter, which only returns a non-null value, when the input is expectedValue.

Link copied to clipboard
public class FirstMatchFilter<TInput extends Object, TResult extends Object> implements IFilter<TInput, TResult>, Iterable<IFilter<TInput, ? extends TResult>>

A filter, which returns the first non-null evaluation from filters. It returns null, if none of filters return a non-null value, or filters is empty.

Link copied to clipboard
public interface IFilter<TInput extends Object, TResult extends Object>

Functional interface for filtering.

Link copied to clipboard
public final class InputNullGuardFilter<TInput extends Object, TResult extends Object> implements IFilter<TInput, TResult>, Iterable<IFilter<TInput, TResult>>

A filter, which forwards evaluation to the given filter, if the input is not null. If the input is null, the filter will return inputNullResult.

Link copied to clipboard
public final class NegationFilter<TInput extends Object> implements IFilter<TInput, Unit>, Iterable<IFilter<TInput, ?>>

A filter, which returns null, if filter returns a non-null value, and returns a non-null value, if filter returns null.

Link copied to clipboard
public final class PostProcessorFilter<TInput extends Object, TSubFilterResult extends Object, TResult extends Object> implements IFilter<TInput, TResult>, Iterable<IFilter<TInput, ? extends TSubFilterResult>>

A post-processor filter, which changes the output of the given sub-filter.

Link copied to clipboard
public final class PreProcessorFilter<TInput extends Object, TSubFilterInput extends Object, TResult extends Object> implements IFilter<TInput, TResult>, Iterable<IFilter<TSubFilterInput, TResult>>

A pre-processor filter, which applies a transform to the value before evaluating the sub-filter on it.

Link copied to clipboard
public final class RangeFilter implements IFilter<Int, Unit>

A filter, which returns a non-null value only when the input number is withing the defined range.

Link copied to clipboard
public final class RegularExpressionFilter implements IFilter<String, Unit>

A filter, which returns a non-null value only when regex matches the input String.