Class ObjectCollectionProviderUnary
Object
- All Implemented Interfaces:
Provider<ObjectCollection>
- Direct Known Subclasses:
AndObjectsWithMasks,AtIndex,DecomposeIntoConnectedComponents,DrawLineAlongConvexHull,Duplicate,FillHoles,FlattenZ,Match,ObjectCollectionProviderWithFeature,RejectIfNotConnected,SliceAt,SplitContourAtSaddlePoints,SplitIntoSquares,UnaryWithChannelBase,WithContainerBase,WithDimensionsBase,WithOptionalDimensionsBase
Implementation of
ObjectCollectionProvider that calls a single delegate
Provider<ObjectCollection>.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectCollectioncreateFromObjects(ObjectCollection objects) Creates aObjectCollectiongiven the entity provided by the delegate.get()Gets or creates an object of typeT.The delegateProvider<ObjectCollection>that is called.voidsetObjects(Provider<ObjectCollection> objects) The delegateProvider<ObjectCollection>that is called.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ObjectCollectionProviderUnary
protected ObjectCollectionProviderUnary()
-
-
Method Details
-
get
Description copied from interface:ProviderGets or creates an object of typeT.- Returns:
- the object returned by the provider.
- Throws:
ProvisionFailedException- if the object cannot be returned.
-
createFromObjects
protected abstract ObjectCollection createFromObjects(ObjectCollection objects) throws ProvisionFailedException Creates aObjectCollectiongiven the entity provided by the delegate.- Parameters:
objects- the entity provided by the delegate.- Returns:
- the created
ObjectCollectionthat is returned by the provider. - Throws:
ProvisionFailedException- if the provider cannot complete successfully.
-
getObjects
The delegateProvider<ObjectCollection>that is called. -
setObjects
The delegateProvider<ObjectCollection>that is called.
-