Class MergeTwoCollectionsItemwise
Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider, ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
MergeTwoCollectionsItemwise
- All Implemented Interfaces:
Provider<ObjectCollection>
public class MergeTwoCollectionsItemwise
extends ObjectCollectionProvider
Merges itemwise objects from two collections.
e.g. element 0 from both collections are merged together, then element 1 etc.
Each collection must have the same number of objects, as will the newly created merged collection.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObjectCollectionget()ObjectCollectionProviderFirst collection with items to be mergedObjectCollectionProviderSecond collection with items to be mergedvoidsetObjects1(ObjectCollectionProvider objects1) First collection with items to be mergedvoidsetObjects2(ObjectCollectionProvider objects2) Second collection with items to be mergedMethods 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
-
MergeTwoCollectionsItemwise
public MergeTwoCollectionsItemwise()
-
-
Method Details
-
get
public ObjectCollection get() throws ProvisionFailedException- Throws:
ProvisionFailedException
-
getObjects1
public ObjectCollectionProvider getObjects1()First collection with items to be merged -
setObjects1
public void setObjects1(ObjectCollectionProvider objects1) First collection with items to be merged -
getObjects2
public ObjectCollectionProvider getObjects2()Second collection with items to be merged -
setObjects2
public void setObjects2(ObjectCollectionProvider objects2) Second collection with items to be merged
-