NumberRangeFilter

public final class NumberRangeFilter implements Filter<Int, Unit>(source)

A filter, which yields a successful result only when the input number is within the defined range, and never skips.

See also

Functions

Link copied to clipboard
public final static NumberRangeFilter atLeast(Integer min)

Creates a filter, which yields a successful result when the input number >= min

Link copied to clipboard
public final static NumberRangeFilter atMost(Integer max)

Creates a filter, which yields a successful result when the input number <= max

Link copied to clipboard
public final static NumberRangeFilter between(Integer min, Integer max)

Creates a filter, which yields a successful result when min<= input number <= max

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

Evaluates the filter with the given value.

Link copied to clipboard
public String toString()