public class Filters
extends java.lang.Object
Constructor and Description |
---|
Filters() |
Modifier and Type | Method and Description |
---|---|
static <T> Filter<T> |
equalTo(T value)
Creates a filter that returns true for inputs that are .equals()
equivalent to the specified value.
|
static <T> Filter<T> |
in(java.util.Collection<? extends T> collection)
Creates a filter that returns true for any value in the specified
collection and false for all other cases.
|
static <T> Filter<T> |
in(T... values)
Creates a filter that returns true for any value in the specified
list of values and false for all other cases.
|
static <T> Filter<T> |
not(Filter<T> f)
Creates a filter that returns true when the specified delegate filter
returns false, and vice versa.
|
static <T> Filter<T> |
notEqualTo(T value)
Creates a filter that returns true for inputs that are NOT .equals()
equivalent to the specified value.
|
static <T> Filter<T> |
notIn(java.util.Collection<? extends T> collection)
Creates a filter that returns true for any value NOT in the specified
collection and false for all other cases.
|
static <T> Filter<T> |
notIn(T... values)
Creates a filter that returns true for any value NOT in the specified
list of values and false for all other cases.
|
public static <T> Filter<T> in(T... values)
public static <T> Filter<T> in(java.util.Collection<? extends T> collection)
public static <T> Filter<T> notIn(T... values)
public static <T> Filter<T> notIn(java.util.Collection<? extends T> collection)
public static <T> Filter<T> equalTo(T value)
public static <T> Filter<T> notEqualTo(T value)