Class CaseProcedure<T>

java.lang.Object
org.eclipse.collections.impl.block.procedure.CaseProcedure<T>
All Implemented Interfaces:
Serializable, Consumer<T>, Procedure<T>

public final class CaseProcedure<T>
extends Object
implements Procedure<T>
CaseProcedure allows developers to create an object form of a case statement, which instead of being based on a single switch value is based on a list of predicate / procedure combinations. For the first predicate that returns true for a given value in the case statement, the corresponding procedure will be executed.
See Also:
Serialized Form