Package | Description |
---|---|
org.anchoranalysis.core.functional |
Utilities and interfaces for applying functional-programming.
|
org.anchoranalysis.image.voxel.object |
The fundamental data class that is an
ObjectMask
and related structures. |
org.anchoranalysis.io.input.bean.path.matcher |
Beans to find a subset of files that match a particular conditions on their paths.
|
org.anchoranalysis.io.input.path.matcher |
Non-bean classes to help with
org.anchoranalysis.io.input.bean.path.matcher . |
Modifier and Type | Method and Description |
---|---|
static <T,E extends Exception> |
CheckedStream.filter(java.util.stream.Stream<T> stream,
Class<? extends Exception> throwableClass,
CheckedPredicate<T,E> predicate)
Performs a
Stream.filter(java.util.function.Predicate<? super T>) but accepts a predicate that can throw a checked-exception. |
static <S,T,E extends Exception> |
FunctionalList.filterAndMapToList(List<S> list,
CheckedPredicate<S,E> predicate,
CheckedFunction<S,T,E> mapFunction)
Creates a new collection by filtering a list and then mapping to a list of another type.
|
static <T,E extends Exception> |
FunctionalList.filterToList(Collection<T> collection,
Class<? extends Exception> throwableClass,
CheckedPredicate<T,E> predicate)
Filters a collection and maps the result to a list.
|
Modifier and Type | Method and Description |
---|---|
<E extends Exception> |
ObjectMaskStream.filter(CheckedPredicate<ObjectMask,E> predicate,
Class<? extends Exception> throwableClass)
Filters a
ObjectCollection to include certain items based on a predicate |
Modifier and Type | Method and Description |
---|---|
protected CheckedPredicate<Path,IOException> |
MatchRegularExpression.createMatcherFile(Path directory,
Optional<InputContextParameters> inputContext) |
protected CheckedPredicate<Path,IOException> |
MatchGlob.createMatcherFile(Path directory,
Optional<InputContextParameters> inputContext) |
protected abstract CheckedPredicate<Path,IOException> |
FilePathMatcher.createMatcherFile(Path directory,
Optional<InputContextParameters> inputContext)
Create a predicate to be used for matching against path.
|
protected CheckedPredicate<Path,IOException> |
MatchExtensions.createMatcherFile(Path directory,
Optional<InputContextParameters> inputContext) |
Modifier and Type | Method and Description |
---|---|
CheckedPredicate<Path,IOException> |
DualPathPredicates.getDirectory()
Only accepts any containing directories where the predicate returns true
|
Constructor and Description |
---|
DualPathPredicates(CheckedPredicate<Path,IOException> file,
CheckedPredicate<Path,IOException> directory) |
DualPathPredicates(CheckedPredicate<Path,IOException> file,
CheckedPredicate<Path,IOException> directory) |
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.