Top Fields Methods
org.reactfx

public Interface Guard

Additional top-level classes in compilation unit: CloseableOnceGuard, BiGuard, MultiGuard.

extends AutoCloseable
Known Direct Implementers
org.reactfx.CloseableOnceGuard, org.reactfx.BiGuard, org.reactfx.MultiGuard
Annotations
@FunctionalInterface

Field Summary

Modifier and TypeField and Description
public static final Guard

Method Summary

Modifier and TypeMethod and Description
public void
close()

Redeclares java.lang.AutoCloseable.close.

Releases this guard.

public default Guard
public static Guard
public static Guard
multi(Guard...
guards that should be released (in reverse order) when the returned guards is released.
guards
)

Returns a guard that is a composition of multiple guards.

Field Detail

EMPTY_GUARDback to summary
public static final Guard EMPTY_GUARD

Method Detail

closeback to summary
public void close()

Redeclares java.lang.AutoCloseable.close.

Releases this guard. Does not throw.

Annotations
@Override
closeableOnceback to summary
public default Guard closeableOnce()
closeableOnceback to summary
public static Guard closeableOnce(Guard guard)
multiback to summary
public static Guard multi(Guard... guards)

Returns a guard that is a composition of multiple guards. Its close() method closes the guards in reverse order.

Parameters
guards:Guard[]

guards that should be released (in reverse order) when the returned guards is released.