Class Always
Specifies a single object that will always be the "match" for whatever source object.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindMatch
(ObjectCollection sourceObjects) Finds matches for objects.void
setObjects
(ObjectCollectionProvider objects) 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
-
Always
public Always()
-
-
Method Details
-
findMatch
public List<MatchedObject> findMatch(ObjectCollection sourceObjects) throws OperationFailedException Description copied from class:ObjectMatcher
Finds matches for objects.- Specified by:
findMatch
in classObjectMatcher
- Parameters:
sourceObjects
- a collection of objects, each of whom is considered a possible match.- Returns:
- a list of each object from
sourceObjects
with corresponding matches (element order remains unchanged). - Throws:
OperationFailedException
- if find process cannot successfully complete.
-
getObjects
-
setObjects
-