- 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>
public final class ActiveCase<T,R>
extends java.lang.Object
implements Case<T,R>
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