Uses of Interface
org.anchoranalysis.core.functional.checked.CheckedPredicate
Packages that use CheckedPredicate
Package
Description
Utilities and interfaces for applying functional-programming.
The fundamental data class that is an
ObjectMask
and related structures.Beans to find a subset of files that match a particular conditions on their paths.
Non-bean classes to help with
org.anchoranalysis.io.input.bean.path.matcher
.-
Uses of CheckedPredicate in org.anchoranalysis.core.functional
Methods in org.anchoranalysis.core.functional with parameters of type CheckedPredicateModifier and TypeMethodDescriptionCheckedStream.filter
(Stream<T> stream, Class<? extends Exception> throwableClass, CheckedPredicate<T, E> predicate) Performs aStream.filter(java.util.function.Predicate<? super T>)
but accepts a predicate that can throw a checked-exception.static <S,
T, E extends Exception>
LinkedList<T> 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.FunctionalList.filterToList
(Collection<T> collection, Class<? extends Exception> throwableClass, CheckedPredicate<T, E> predicate) Filters a collection and maps the result to a list. -
Uses of CheckedPredicate in org.anchoranalysis.image.voxel.object
Methods in org.anchoranalysis.image.voxel.object with parameters of type CheckedPredicateModifier and TypeMethodDescription<E extends Exception>
ObjectCollectionObjectMaskStream.filter
(CheckedPredicate<ObjectMask, E> predicate, Class<? extends Exception> throwableClass) Filters aObjectCollection
to include certain items based on a predicate -
Uses of CheckedPredicate in org.anchoranalysis.io.input.bean.path.matcher
Methods in org.anchoranalysis.io.input.bean.path.matcher that return CheckedPredicateModifier and TypeMethodDescriptionprotected 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) protected CheckedPredicate
<Path, IOException> MatchGlob.createMatcherFile
(Path directory, Optional<InputContextParameters> inputContext) protected CheckedPredicate
<Path, IOException> MatchRegularExpression.createMatcherFile
(Path directory, Optional<InputContextParameters> inputContext) -
Uses of CheckedPredicate in org.anchoranalysis.io.input.path.matcher
Methods in org.anchoranalysis.io.input.path.matcher that return CheckedPredicateModifier and TypeMethodDescriptionDualPathPredicates.getDirectory()
Only accepts any containing directories where the predicate returns trueConstructors in org.anchoranalysis.io.input.path.matcher with parameters of type CheckedPredicateModifierConstructorDescriptionDualPathPredicates
(CheckedPredicate<Path, IOException> file, CheckedPredicate<Path, IOException> directory) Creates a newDualPathPredicates
instance.