L
- the procedure left argument type.R
- the procedure right argument type.public class BinarySequence<L,R> extends Object implements BinaryProcedure<L,R>
BinaryProcedure
that runs
an ordered
sequence of BinaryProcedures
.
When the sequence is empty, this procedure is does
nothing.Constructor and Description |
---|
BinarySequence()
Create a new BinarySequence.
|
BinarySequence(BinaryProcedure<? super L,? super R>... procedures)
Create a new BinarySequence instance.
|
BinarySequence(Iterable<BinaryProcedure<? super L,? super R>> procedures)
Create a new BinarySequence instance.
|
public BinarySequence()
public BinarySequence(BinaryProcedure<? super L,? super R>... procedures)
procedures
- to run sequentiallypublic BinarySequence(Iterable<BinaryProcedure<? super L,? super R>> procedures)
procedures
- to run sequentiallypublic final BinarySequence<L,R> then(BinaryProcedure<? super L,? super R> p)
p
- BinaryProcedure to addpublic final void run(L left, R right)
run
in interface BinaryProcedure<L,R>
left
- the L element of the ordered pair of argumentsright
- the R element of the ordered pair of argumentsCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.