Package com.vladsch.plugin.util
Interface CancellableConsumerRunnable<T>
-
- All Superinterfaces:
Cancellable,java.util.function.Consumer<T>
- All Known Implementing Classes:
OneTimeConsumerRunnable
public interface CancellableConsumerRunnable<T> extends Cancellable, java.util.function.Consumer<T>
-
-
Field Summary
Fields Modifier and Type Field Description static CancellableConsumerRunnable<java.lang.Object>NULL
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleancancel()booleancanRun()@NotNull java.lang.StringgetId()default booleanisNotNull()default booleanisNull()static <V> CancellableConsumerRunnable<V>nullRunnable()
-
-
-
Field Detail
-
NULL
static final CancellableConsumerRunnable<java.lang.Object> NULL
-
-
Method Detail
-
nullRunnable
static <V> CancellableConsumerRunnable<V> nullRunnable()
-
isNull
default boolean isNull()
-
isNotNull
default boolean isNotNull()
-
cancel
boolean cancel()
- Specified by:
cancelin interfaceCancellable
-
canRun
boolean canRun()
- Specified by:
canRunin interfaceCancellable
-
getId
@NotNull @NotNull java.lang.String getId()
-
-