Package net.ygbstudio.powerwp4j.utils.functional


package net.ygbstudio.powerwp4j.utils.functional
Tiny functional helpers.

Defines lightweight functional interfaces used to keep service and engine code concise: Trigger, TypedTrigger, TriggerCallable, ExceptionTrigger and ExceptionCauseTrigger. They avoid duplication around retry, exception wrapping and logging.

Since:
0.1.0
  • Interfaces
    Class
    Description
    Functional interface that represents a trigger function that throws a checked exception of type T when activated.
    Functional interface that represents a trigger function that throws a checked exception when activated.
    Interface for representing a trigger function that can be activated lazily in context were code reuse is desired and enforced.
    TriggerCallable is a functional interface that represents a callable that can be triggered multiple times and returns a result of type R.
    Typed variant of the Trigger interface for representing an action that can be activated at a later point in the program with a specific argument supplied to a function to be executed.