Package org.reactfx
Interface Guard
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
BiGuard
,CloseableOnceGuard
,MultiGuard
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Guard extends java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description static Guard
EMPTY_GUARD
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
close()
Releases this guard.default Guard
closeableOnce()
static Guard
closeableOnce(Guard guard)
static Guard
multi(Guard... guards)
Returns a guard that is a composition of multiple guards.
-