public abstract class ObjectFilterPredicate extends ObjectFilter
Constructor and Description |
---|
ObjectFilterPredicate() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
end() |
ObjectCollection |
filter(ObjectCollection objectsToFilter,
Optional<Dimensions> dimensions)
Filters an
ObjectCollection to remove objects. |
protected abstract boolean |
match(ObjectMask object,
Optional<Dimensions> dimensions)
A predicate condition for an object to be kept in the collection
|
protected abstract boolean |
precondition(ObjectCollection objectsToFilter)
A precondition, which if evaluates to false, cancels the filter i.e.
|
protected void |
start(Optional<Dimensions> dimensions,
ObjectCollection objectsToFilter) |
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public ObjectCollection filter(ObjectCollection objectsToFilter, Optional<Dimensions> dimensions) throws OperationFailedException
ObjectFilter
ObjectCollection
to remove objects.filter
in class ObjectFilter
objectsToFilter
- the objects to filter.dimensions
- image-dimensions.OperationFailedException
- if the operation cannot complete successfully.protected abstract boolean precondition(ObjectCollection objectsToFilter)
protected void start(Optional<Dimensions> dimensions, ObjectCollection objectsToFilter) throws OperationFailedException
OperationFailedException
protected abstract boolean match(ObjectMask object, Optional<Dimensions> dimensions) throws OperationFailedException
OperationFailedException
protected abstract void end() throws OperationFailedException
OperationFailedException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.