Class Match
- All Implemented Interfaces:
Provider<ObjectCollection>
Provides an
ObjectCollection
by matching objects using a specified ObjectMatcher
.
This class applies the matching operation to the input object collection and returns a new collection containing only the matched objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromObjects
(ObjectCollection objects) Creates aObjectCollection
given the entity provided by the delegate.TheObjectMatcher
used to find matches in the input object collection.void
setMatcher
(ObjectMatcher matcher) TheObjectMatcher
used to find matches in the input object collection.Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
get, getObjects, setObjects
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Match
public Match()
-
-
Method Details
-
createFromObjects
Description copied from class:ObjectCollectionProviderUnary
Creates aObjectCollection
given the entity provided by the delegate.- Specified by:
createFromObjects
in classObjectCollectionProviderUnary
- Parameters:
objects
- the entity provided by the delegate.- Returns:
- the created
ObjectCollection
that is returned by the provider. - Throws:
ProvisionFailedException
- if the provider cannot complete successfully.
-
getMatcher
TheObjectMatcher
used to find matches in the input object collection. -
setMatcher
TheObjectMatcher
used to find matches in the input object collection.
-