Class AtIndex
- All Implemented Interfaces:
Provider<ObjectCollection>
Extract a single
ObjectMask into a new collection.
The element to extract is identified by its index in the existing collection.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromObjects(ObjectCollection objects) Creates aObjectCollectiongiven the entity provided by the delegate.intgetIndex()voidsetIndex(int index) Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
get, getObjects, setObjectsMethods 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
-
AtIndex
public AtIndex()
-
-
Method Details
-
createFromObjects
Description copied from class:ObjectCollectionProviderUnaryCreates aObjectCollectiongiven the entity provided by the delegate.- Specified by:
createFromObjectsin classObjectCollectionProviderUnary- 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.
-
getIndex
public int getIndex() -
setIndex
public void setIndex(int index)
-