public final class ClosureUtil
extends Object
-
Method Summary
static <T> groovy.lang.Closure<T>
static void
delegate(@NotNull groovy.lang.Closure closure,
@NotNull Object delegate)
static boolean
static <T> groovy.lang.Closure<T>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
delegateNullSafe
public static boolean delegateNullSafe(@Nullable
@Nullable groovy.lang.Closure closure,
@NotNull
@NotNull Object delegate)
-
delegate
public static void delegate(@NotNull
@NotNull groovy.lang.Closure closure,
@NotNull
@NotNull Object delegate)
-
of
public static <T> groovy.lang.Closure<T> of(Supplier<T> supplier)
-