public class Filters
extends java.lang.Object
Constructor and Description |
---|
Filters() |
Modifier and Type | Method and Description |
---|---|
static <T> Filter<T> |
compositeFilter(java.util.List<Filter<T>> filters) |
static Filter<java.lang.String> |
createStringFilter(java.lang.String text)
Returns a String pattern matching filter using ! for not and * for any characters
|
static <T> Filter<T> |
falseFilter() |
static <T> boolean |
isEmpty(Filter<T> filter) |
static <T> boolean |
matches(T value,
java.util.List<? extends Filter<T>> filters)
Returns true if any of the filters matches the given value
|
static <T> boolean |
matches(T value,
java.util.List<? extends Filter<T>> includeFilters,
java.util.List<? extends Filter<T>> excludeFilters)
Return true if the value matches an include filter if specified and does not match an exclude filter
|
static <T> Filter<T> |
not(Filter<T> filter) |
static <T> Filter<T> |
or(Filter<T>... filters) |
static <T> Filter<T> |
trueFilter() |
public static <T> Filter<T> trueFilter()
public static <T> Filter<T> falseFilter()
public static <T> boolean matches(T value, java.util.List<? extends Filter<T>> filters)
public static <T> boolean matches(T value, java.util.List<? extends Filter<T>> includeFilters, java.util.List<? extends Filter<T>> excludeFilters)
public static <T> boolean isEmpty(Filter<T> filter)
public static Filter<java.lang.String> createStringFilter(java.lang.String text)
Copyright © 2014 Red Hat. All Rights Reserved.