Class JavaClosure

java.lang.Object
All Implemented Interfaces:
Proxy

@NullMarked public class JavaClosure extends Closure
An implementation of Closure that can be used with Java callbacks. In most cases, the callback will be invoked using reflection. For two common cases (Runnable and BooleanSupplier), the callback will be invoked directly.