public class Predicates extends Object
| Modifier | Constructor and Description |
|---|---|
private |
Predicates() |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<String> |
blacklist(String input)
Generate a blacklist filter/predicate that allows only those values that are not included in the supplied comma-separated input.
|
static <T> Predicate<T> |
blacklist(String input,
char delimiter,
Function<String,T> factory)
Generate a blacklist filter/predicate that allows only those values that are not included in the supplied input.
|
static <T> Predicate<T> |
blacklist(String input,
Function<String,String[]> splitter,
Function<String,T> factory)
Generate a blacklist filter/predicate that allows only those values that are not included in the supplied input.
|
static <T> Predicate<T> |
blacklist(String input,
Function<String,T> factory)
Generate a blacklist filter/predicate that allows only those values that are not included in the supplied comma-separated input.
|
static <R> Predicate<R> |
not(Predicate<R> predicate) |
static <T> Predicate<T> |
notNull() |
static Predicate<String> |
whitelist(String input)
Generate a whitelist filter/predicate that allows only those values that are included in the supplied
comma-separated input.
|
static <T> Predicate<T> |
whitelist(String input,
char delimiter,
Function<String,T> factory)
Generate a whitelist filter/predicate that allows only those values that are included in the supplied input.
|
static <T> Predicate<T> |
whitelist(String input,
Function<String,String[]> splitter,
Function<String,T> factory)
Generate a whitelist filter/predicate that allows only those values that are included in the supplied input.
|
static <T> Predicate<T> |
whitelist(String input,
Function<String,T> factory)
Generate a whitelist filter/predicate that allows only those values that are included in the supplied
comma-separated input.
|
public static <T> Predicate<T> whitelist(String input, Function<String,String[]> splitter, Function<String,T> factory)
input - the input stringsplitter - the function that splits the input into multiple items; may not be nullfactory - the factory for creating string items into filter matches; may not be nulltrue if and only if the argument to the predicate matches (with
equals(...) one of the objects parsed from the input; never nullpublic static <T> Predicate<T> whitelist(String input, char delimiter, Function<String,T> factory)
input - the input stringdelimiter - the character used to delimit the items in the inputfactory - the factory for creating string items into filter matches; may not be nulltrue if and only if the argument to the predicate matches (with
equals(...) one of the objects parsed from the input; never nullpublic static <T> Predicate<T> whitelist(String input, Function<String,T> factory)
input - the input stringfactory - the factory for creating string items into filter matches; may not be nulltrue if and only if the argument to the predicate matches (with
equals(...) one of the objects parsed from the input; never nullpublic static Predicate<String> whitelist(String input)
input - the input stringtrue if and only if the argument to the predicate matches (with
equals(...) one of the objects parsed from the input; never nullpublic static <T> Predicate<T> blacklist(String input, Function<String,String[]> splitter, Function<String,T> factory)
input - the input stringsplitter - the function that splits the input into multiple items; may not be nullfactory - the factory for creating string items into filter matches; may not be nulltrue if and only if the argument to the predicate matches (with
equals(...) one of the objects parsed from the input; never nullpublic static <T> Predicate<T> blacklist(String input, char delimiter, Function<String,T> factory)
input - the input stringdelimiter - the character used to delimit the items in the inputfactory - the factory for creating string items into filter matches; may not be nulltrue if and only if the argument to the predicate matches (with
equals(...) one of the objects parsed from the input; never nullpublic static <T> Predicate<T> blacklist(String input, Function<String,T> factory)
input - the input stringfactory - the factory for creating string items into filter matches; may not be nulltrue if and only if the argument to the predicate matches (with
equals(...) one of the objects parsed from the input; never nullpublic static Predicate<String> blacklist(String input)
input - the input stringtrue if and only if the argument to the predicate matches (with
equals(...) one of the objects parsed from the input; never nullpublic static <T> Predicate<T> notNull()
Copyright © 2016 JBoss by Red Hat. All rights reserved.