Top Description Fields Constructors Methods
org.eclipse.collections.impl.block.procedure

public final Class ChainedProcedure<T>

extends Object
implements Procedure<T>
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.Procedure, java.io.Serializable, java.util.function.Consumer
Imports
java.util.List, org.eclipse.collections.api.block.procedure.Procedure, org.eclipse.collections.api.factory.Lists

ChainedProcedure allows a developer to chain together procedure to be executed in sequence.

Field Summary

Modifier and TypeField and Description
private final List<Procedure<? super T>>
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addProcedure(Procedure<? super T> procedure)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
public static <E> ChainedProcedure<E>
with(Procedure<? super E> procedure1, Procedure<? super E> procedure2)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

proceduresback to summary
private final List<Procedure<? super T>> procedures
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

ChainedProcedureback to summary
public ChainedProcedure()

Method Detail

addProcedureback to summary
public void addProcedure(Procedure<? super T> procedure)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
valueback to summary
public void value(T object)

Implements org.eclipse.collections.api.block.procedure.Procedure.value.

Annotations
@Override
withback to summary
public static <E> ChainedProcedure<E> with(Procedure<? super E> procedure1, Procedure<? super E> procedure2)