net.sourceforge.wurfl.lang.oneparam
Class SequenceOp<R>

java.lang.Object
  extended by net.sourceforge.wurfl.lang.twoparam.TwoParamOp<V,Curry,R>
      extended by net.sourceforge.wurfl.lang.oneparam.OneParamOp<R,R>
          extended by net.sourceforge.wurfl.lang.oneparam.ChainableOp<R>
              extended by net.sourceforge.wurfl.lang.oneparam.SequenceOp<R>

public class SequenceOp<R>
extends ChainableOp<R>

Executes in sequence other operations. Date: 09/06/11

Since:
1.3.5
Version:
$Id$

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sourceforge.wurfl.lang.oneparam.OneParamOp
OneParamOp.Type
 
Field Summary
protected  List<ChainableOp<R>> ops
           
 
Fields inherited from class net.sourceforge.wurfl.lang.twoparam.TwoParamOp
logger
 
Constructor Summary
SequenceOp(ChainableOp<R>... ops)
           
 
Method Summary
 boolean equals(Object o)
          Return true if the provided object equals this one.
 R execute(R s)
          Ask each operation in the sequence to execute.\n Each result is fed to next operation as parameter.
 String getDescription()
           
static void main(String[] args)
           
 String toString()
          Returns a string description of this operation sequence.
 
Methods inherited from class net.sourceforge.wurfl.lang.oneparam.ChainableOp
then
 
Methods inherited from class net.sourceforge.wurfl.lang.oneparam.OneParamOp
execute
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ops

protected final List<ChainableOp<R>> ops
Constructor Detail

SequenceOp

public SequenceOp(ChainableOp<R>... ops)
Method Detail

toString

public String toString()
Returns a string description of this operation sequence.

Overrides:
toString in class Object
Returns:
a string description of this operation sequence

equals

public boolean equals(Object o)
Return true if the provided object equals this one.

Overrides:
equals in class Object
Returns:
true if the provided object equals this one

execute

public final R execute(R s)
Ask each operation in the sequence to execute.\n Each result is fed to next operation as parameter.

Specified by:
execute in class OneParamOp<R,R>

getDescription

public final String getDescription()

main

public static void main(String[] args)


Copyright © 2012 ScientiaMobile Inc.. All Rights Reserved.