T - @FunctionalInterface public interface IModifyListener<T> extends BiConsumer<T,T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
IModifyListener.CreateListener<T> |
static class |
IModifyListener.ModifyListener<T> |
static class |
IModifyListener.RemoveListener<T> |
static class |
IModifyListener.UpdateListener<T> |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(T newValue,
T oldValue) |
default String |
getNotifyBufferId() |
default boolean |
isEnabled() |
static <T> IModifyListener<T> |
onCreate(Consumer<T> consumer) |
default void |
onListenStart(T value) |
default void |
onListenStop(T value) |
static <T> IModifyListener<T> |
onModify(Consumer<T> consumer) |
static <T> IModifyListener<T> |
onRemove(Consumer<T> consumer) |
static <T> IModifyListener<T> |
onUpdate(BiConsumer<T,T> consumer) |
andThendefault boolean isEnabled()
default String getNotifyBufferId()
default void onListenStart(T value)
default void onListenStop(T value)
static <T> IModifyListener<T> onRemove(Consumer<T> consumer)
static <T> IModifyListener<T> onCreate(Consumer<T> consumer)
static <T> IModifyListener<T> onModify(Consumer<T> consumer)
static <T> IModifyListener<T> onUpdate(BiConsumer<T,T> consumer)
Copyright © 2020. All rights reserved.