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 ObjectCollection
createFromObjects
(ObjectCollection objects) Creates aObjectCollection
given the entity provided by the delegate.get()
Gets or creates an object of typeT
.The delegateProvider<ObjectCollection>
that is called.void
setObjects
(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, onInitialization
Methods 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:Provider
Gets 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 aObjectCollection
given the entity provided by the delegate.- 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.
-
getObjects
The delegateProvider<ObjectCollection>
that is called. -
setObjects
The delegateProvider<ObjectCollection>
that is called.
-