RangeFilter

public final class RangeFilter implements IFilter<Int, Unit>(source)

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

See also

Functions

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

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

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

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

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

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

Link copied to clipboard
public Unit evaluate(Integer input)

Evaluates the filter with the given value.

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.