Add NotificationTicket#invalidate for shorthand
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
This commit is contained in:
1 file changed
+4
@@ -46,4 +46,8 @@ public interface NotificationTicket {
|
||||
|
||||
void setValid(boolean valid);
|
||||
|
||||
default void invalidate() {
|
||||
this.setValid(false);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user