org.omnaest.utils.operation.composite
Class OperationComposite<RESULT,PARAMETER>

java.lang.Object
  extended by org.omnaest.utils.operation.composite.OperationComposite<RESULT,PARAMETER>
Type Parameters:
RESULT -
PARAMETER -
All Implemented Interfaces:
Operation<List<RESULT>,PARAMETER>

public class OperationComposite<RESULT,PARAMETER>
extends Object
implements Operation<List<RESULT>,PARAMETER>

Composite which takes a List of Operation instances. All Operation.execute(Object) will be invoked in the given order of the List

Author:
Omnaest

Field Summary
protected  List<Operation<RESULT,PARAMETER>> operationList
           
 
Constructor Summary
OperationComposite(List<Operation<RESULT,PARAMETER>> operationList)
           
 
Method Summary
 List<RESULT> execute(PARAMETER parameter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operationList

protected final List<Operation<RESULT,PARAMETER>> operationList
Constructor Detail

OperationComposite

public OperationComposite(List<Operation<RESULT,PARAMETER>> operationList)
Parameters:
operationList -
See Also:
OperationComposite
Method Detail

execute

public List<RESULT> execute(PARAMETER parameter)
Specified by:
execute in interface Operation<List<RESULT>,PARAMETER>


Copyright © 2013. All Rights Reserved.