Class ChainedProcedure<T>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.ChainedProcedure<T>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.Consumer<T>
,Procedure<T>
public final class ChainedProcedure<T> extends java.lang.Object implements Procedure<T>
ChainedProcedure allows a developer to chain together procedure to be executed in sequence.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Procedure<? super T>>
procedures
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ChainedProcedure()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProcedure(Procedure<? super T> procedure)
java.lang.String
toString()
void
value(T object)
static <E> ChainedProcedure<E>
with(Procedure<? super E> procedure1, Procedure<? super E> procedure2)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
with
public static <E> ChainedProcedure<E> with(Procedure<? super E> procedure1, Procedure<? super E> procedure2)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-