クラス HandlerUtil
java.lang.Object
net.ririfa.beacon.javaExtension.HandlerUtil
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明static <T extends net.ririfa.beacon.Event>
kotlin.Unithandler(IEventHandler instance, Class<T> eventType, Supplier<Boolean> condition, boolean ignoresCondition, net.ririfa.beacon.Priority priority, Handler<T> handler, Long timeout) Registers a handler for events of type T.static <T extends net.ririfa.beacon.Event>
kotlin.Unithandler(IEventHandler instance, Class<T> eventType, Handler<T> handler) Registers a handler for events of type T with default settings.static <T extends net.ririfa.beacon.ReturnableEvent<R>,R>
kotlin.UnitreturnableHandler(IEventHandler instance, Class<T> eventType, Supplier<Boolean> condition, boolean ignoresCondition, net.ririfa.beacon.Priority priority, ReturnableHandler<T, R> handler, Long timeout) Registers a handler for returnable events of type T.static <T extends net.ririfa.beacon.ReturnableEvent<R>,R>
kotlin.UnitreturnableHandler(IEventHandler instance, Class<T> eventType, ReturnableHandler<T, R> handler) Registers a handler for returnable events of type T with default settings.
-
コンストラクタの詳細
-
HandlerUtil
public HandlerUtil()
-
-
メソッドの詳細
-
handler
public static <T extends net.ririfa.beacon.Event> kotlin.Unit handler(@NotNull IEventHandler instance, Class<T> eventType, Supplier<Boolean> condition, boolean ignoresCondition, net.ririfa.beacon.Priority priority, Handler<T> handler, Long timeout) Registers a handler for events of type T.- 型パラメータ:
T- the type of the event to be handled- パラメータ:
instance- the event handler instanceeventType- the class type of the eventcondition- a supplier providing the condition to be checkedignoresCondition- whether the condition should be ignoredpriority- the priority of the event handlerhandler- the handler to process the eventtimeout- the timeout for the event handler- 例外:
IllegalStateException- if the listener is not registered
-
handler
public static <T extends net.ririfa.beacon.Event> kotlin.Unit handler(@NotNull IEventHandler instance, Class<T> eventType, Handler<T> handler) Registers a handler for events of type T with default settings.- 型パラメータ:
T- the type of the event to be handled- パラメータ:
instance- the event handler instancehandler- the handler to process the event
-
returnableHandler
public static <T extends net.ririfa.beacon.ReturnableEvent<R>,R> kotlin.Unit returnableHandler(@NotNull IEventHandler instance, Class<T> eventType, Supplier<Boolean> condition, boolean ignoresCondition, net.ririfa.beacon.Priority priority, ReturnableHandler<T, R> handler, Long timeout) Registers a handler for returnable events of type T.- 型パラメータ:
T- the type of the event to be handledR- the type of the return value- パラメータ:
instance- the event handler instancecondition- a supplier providing the condition to be checkedignoresCondition- whether the condition should be ignoredpriority- the priority of the event handlerhandler- the handler to process the eventtimeout- the timeout for the event handler- 例外:
IllegalStateException- if the listener is not registered
-
returnableHandler
public static <T extends net.ririfa.beacon.ReturnableEvent<R>,R> kotlin.Unit returnableHandler(IEventHandler instance, Class<T> eventType, ReturnableHandler<T, R> handler) Registers a handler for returnable events of type T with default settings.- 型パラメータ:
T- the type of the event to be handledR- the type of the return value- パラメータ:
instance- the event handler instancehandler- the handler to process the event
-