public class ObjectWithMaximumFeatureFromEachMatchedCollection extends ObjectCollectionProviderWithFeature
Specifically, for each object in the upstream collection, matches are found, and the object from those matches with the highest feature value is selected for inclusion in the newly created collection.
If every object has at least one match, the newly created collection will have as many elements as the upstream collection.
Constructor and Description |
---|
ObjectWithMaximumFeatureFromEachMatchedCollection() |
Modifier and Type | Method and Description |
---|---|
ObjectCollection |
createFromObjects(ObjectCollection objects)
Creates a
ObjectCollection given the entity provided by the delegate. |
ObjectMatcher |
getMatcher() |
void |
setMatcher(ObjectMatcher matcher) |
createSession, getFeatureEvaluator, setFeatureEvaluator
get, getObjects, setObjects
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public ObjectWithMaximumFeatureFromEachMatchedCollection()
public ObjectCollection createFromObjects(ObjectCollection objects) throws ProvisionFailedException
ObjectCollectionProviderUnary
ObjectCollection
given the entity provided by the delegate.createFromObjects
in class ObjectCollectionProviderUnary
objects
- the entity provided by the delegate.ObjectCollection
that is returned by the provider.ProvisionFailedException
- if the provider cannot complete successfully.public ObjectMatcher getMatcher()
public void setMatcher(ObjectMatcher matcher)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.