Class Intersection
An
ObjectMatcher
that matches objects based on their intersection with a provided set of
objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindMatch
(ObjectCollection sourceObjects) Finds matches for objects.Provider for the objects to intersect with the source objects.void
setObjects
(ObjectCollectionProvider objects) Provider for the objects to intersect with the source 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
-
Intersection
public Intersection()
-
-
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
Provider for the objects to intersect with the source objects. -
setObjects
Provider for the objects to intersect with the source objects.
-