Class MergeTwoCollectionsItemwise
Object
- All Implemented Interfaces:
Provider<ObjectCollection>
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 TypeMethodDescriptionget()
Gets or creates an object of typeT
.First collection with items to be mergedSecond collection with items to be mergedvoid
setObjects1
(ObjectCollectionProvider objects1) First collection with items to be mergedvoid
setObjects2
(ObjectCollectionProvider objects2) Second collection with items to be mergedMethods 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
-
MergeTwoCollectionsItemwise
public MergeTwoCollectionsItemwise()
-
-
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.
-
getObjects1
First collection with items to be merged -
setObjects1
First collection with items to be merged -
getObjects2
Second collection with items to be merged -
setObjects2
Second collection with items to be merged
-