- All Implemented Interfaces:
java.io.Serializable
, java.util.function.Consumer<T>
, Procedure<T>
public final class CaseProcedure<T>
extends java.lang.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