X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Frhynodge%2FState.java;h=966dbe307927b36a47a2f0b7c87dbc700a9974e5;hb=8aeef90590095a455e2323d70ba8ccae032f4276;hp=bda5bf5f0d013df9cff6cb8e9473ea0d0197d4e3;hpb=5d962b76adef88663cfa4acc093836c71fe9dd82;p=rhynodge.git diff --git a/src/main/java/net/pterodactylus/rhynodge/State.java b/src/main/java/net/pterodactylus/rhynodge/State.java index bda5bf5..966dbe3 100644 --- a/src/main/java/net/pterodactylus/rhynodge/State.java +++ b/src/main/java/net/pterodactylus/rhynodge/State.java @@ -47,6 +47,21 @@ public interface State { */ boolean success(); + /** + * Returns whether this state triggers a change notification. This can + * only return {@code true} if this state is the result of a + * {@link Merger} merging two states. + * + * @return {@code true} if this state triggers a change notification, + * {@code false} otherwise + */ + boolean triggered(); + + /** + * Sets whether this state will trigger a notification. + */ + void trigger(); + boolean isEmpty(); /**