public class Sequence extends Object implements Procedure, Serializable
Procedure
that runs an ordered
sequence of Procedures.
When the sequence is empty, this procedure is does
nothing.
Note that although this class implements
Serializable, a given instance will
only be truly Serializable if all the
underlying functors are. Attempts to serialize
an instance whose delegates are not all
Serializable will result in an exception.
| Constructor and Description |
|---|
Sequence()
Create a new Sequence.
|
Sequence(Iterable<Procedure> procedures)
Create a new Sequence instance.
|
Sequence(Procedure... procedures)
Create a new Sequence instance.
|
public Sequence()
public Sequence(Procedure... procedures)
procedures - to run sequentiallypublic final Sequence then(Procedure p)
p - Procedure to addpublic final void run()
public boolean equals(Sequence that)
that - Sequence to testCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.