- Type Parameters:
T - Input type for predicate and function (action)
R - Return type for function (action) which is executed if the predicate tests positive
X - Type of Function - cyclops pattern matching builders use ActionWithReturn which is serialisable and retains type info
- All Implemented Interfaces:
- Case<T,R,X>
public final class ActiveCase<T,R,X extends java.util.function.Function<T,R>>
extends java.lang.Object
implements Case<T,R,X>
A functionally compositional class that represents a pattern matching Case
Consists of a Predicate and a Function
When match is called, if the predicate holds the function is executed