Package de.flapdoodle.kfx.events
Class SharedEventLock
-
- All Implemented Interfaces:
public final class SharedEventLock
-
-
Constructor Summary
Constructors Constructor Description SharedEventLock()
-
Method Summary
Modifier and Type Method Description final Pair<Node, Object>getCurrent()final UnitsetCurrent(Pair<Node, Object> current)final Unitlock(Node owner, Function0<Object> stateFactory)final <K extends Any> UnitreplaceLocked(Node owner, Function0<Object> stateFactory)final <K extends Any> UnitifLocked(Node owner, Class<K> clazz, Function1<K, Unit> onLocked)final <N extends Node, K extends Any> UnitifAnyLocked(Class<N> ownerType, Class<K> clazz, Function2<N, K, Unit> onLocket)final UnitifUnlocked(Function0<Unit> onUnlocked)final <K extends Any> Unitrelease(Node owner, Class<K> clazz, Function1<K, Unit> onRelease)StringtoString()-
-
Method Detail
-
getCurrent
final Pair<Node, Object> getCurrent()
-
setCurrent
final Unit setCurrent(Pair<Node, Object> current)
-
replaceLocked
final <K extends Any> Unit replaceLocked(Node owner, Function0<Object> stateFactory)
-
ifLocked
final <K extends Any> Unit ifLocked(Node owner, Class<K> clazz, Function1<K, Unit> onLocked)
-
ifAnyLocked
final <N extends Node, K extends Any> Unit ifAnyLocked(Class<N> ownerType, Class<K> clazz, Function2<N, K, Unit> onLocket)
-
ifUnlocked
final Unit ifUnlocked(Function0<Unit> onUnlocked)
-
release
final <K extends Any> Unit release(Node owner, Class<K> clazz, Function1<K, Unit> onRelease)
-
-
-
-