Condition

Collection of BooleanSupplier extensions for rising and falling edge detection.

Author

Lucas Bubner, 2024

Since

6.0.0

Constructors

Link copied to clipboard
constructor(@NonNull edge: Condition.Edge, @NonNull condition: BooleanSupplier)
Creates a new Condition with the given BooleanSupplier.
constructor(@NonNull condition: BooleanSupplier)
Creates a new Condition with the given BooleanSupplier and no edge detection.

Types

Link copied to clipboard
enum Edge
Enum for edge detection.

Properties

Link copied to clipboard
The currently set edge detection to use for the BooleanSuppliergetAsBoolean method.

Functions

Link copied to clipboard
Creates a new Condition that is the logical AND of this Condition and anot @link BooleanSupplier}.
Link copied to clipboard
open fun getActive(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun getAsBoolean(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun not(): Condition
Creates a new Condition that is the logical NOT of this Condition.
Link copied to clipboard
Creates a new Condition that is the logical OR of this Condition and another @link BooleanSupplier}.
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
Composes this Condition with a delay.
Link copied to clipboard
Creates a new Condition that is the logical XOR of this Condition and anot @link BooleanSupplier}.