L - the left argument type.R - the right argument type.public class TransposedProcedure<L,R> extends Object implements BinaryProcedure<L,R>
procedure.
For example, given a procedure p
and the ordered pair of arguments a,
b.
runs
p.run(b,a).| Constructor and Description |
|---|
TransposedProcedure(BinaryProcedure<? super R,? super L> procedure)
Create a new TransposedProcedure.
|
public TransposedProcedure(BinaryProcedure<? super R,? super L> procedure)
procedure - BinaryProcedure to transposepublic 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 argumentspublic static <L,R> TransposedProcedure<R,L> transpose(BinaryProcedure<? super L,? super R> p)
L - the left argument type.R - the right argument type.p - to transposeCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.