Package | Description |
---|---|
io.fabric8.utils |
Modifier and Type | Class and Description |
---|---|
class |
CompositeFilter<T>
Represents a filter which ORs together a collection of filters,
returning true if any of the filters are true
|
Modifier and Type | Method and Description |
---|---|
static <T> Filter<T> |
Filters.compositeFilter(List<Filter<T>> filters) |
static Filter<String> |
Filters.containsAnyString(String... textValues)
Returns a filter which returns true if the String contains any of the given text values
|
static Filter<String> |
Filters.containsString(String text) |
static Filter<String> |
Filters.createStringFilter(String text)
Returns a String pattern matching filter using ! for not and * for any characters
|
static Filter<String> |
Filters.createStringFilters(Iterable<String> patterns)
Returns a filter if any of the String patterns match (using ! for not and * for any characters)
|
static <T> Filter<T> |
Filters.falseFilter() |
static <T> Filter<T> |
Filters.not(Filter<T> filter) |
static <T> Filter<T> |
Filters.or(Filter<T>... filters) |
static <T> Filter<T> |
Filters.or(List<Filter<T>> filters) |
static <T> Filter<T> |
Filters.trueFilter() |
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
Filters.filter(Iterable<T> values,
Filter<T> filter)
Returns the string values which match the given filter
|
static Set<File> |
Files.findRecursive(File file,
Filter<File> filter)
Returns the files found for the given file and directories which match the given filter
|
static void |
Files.findRecursive(File file,
Filter<File> filter,
Collection<File> collection)
Recursively finds all files matching the given filter and adds them to the collection
|
static <T> boolean |
Filters.isEmpty(Filter<T> filter) |
static <T> Filter<T> |
Filters.not(Filter<T> filter) |
static <T> Filter<T> |
Filters.or(Filter<T>... filters) |
protected static void |
Processes.parseProcesses(InputStream inputStream,
List<Long> answer,
String message,
Filter<String> lineFilter,
Function<String,String> preFunction) |
Modifier and Type | Method and Description |
---|---|
static <T> Filter<T> |
Filters.compositeFilter(List<Filter<T>> filters) |
static <T> boolean |
Filters.matches(T value,
List<? extends Filter<T>> filters)
Returns true if any of the filters matches the given value
|
static <T> boolean |
Filters.matches(T value,
List<? extends Filter<T>> includeFilters,
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> boolean |
Filters.matches(T value,
List<? extends Filter<T>> includeFilters,
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> |
Filters.or(List<Filter<T>> filters) |
Constructor and Description |
---|
CompositeFilter(Collection<Filter<T>> filters) |
Copyright © 2011–2017 Red Hat. All rights reserved.