- java.lang.Object
-
- aeonics.util.Callback.Once<U,S>
-
- Type Parameters:
U
- the type of data that triggered this callbackS
- the type of the target class of this callback
- All Implemented Interfaces:
Functions.BiConsumer<U,S>
,Functions.Consumer<U>
public static class Callback.Once<U,S> extends java.lang.Object implements Functions.BiConsumer<U,S>
This class specified that a callback handler should only run once and then be removed from the list of handlers.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(U value, S target)
Performs this operation on the given arguments.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface aeonics.util.Functions.BiConsumer
accept
-
-
-
-
Method Detail
-
accept
public void accept(U value, S target) throws java.lang.Exception
Description copied from interface:Functions.BiConsumer
Performs this operation on the given arguments.- Specified by:
accept
in interfaceFunctions.BiConsumer<U,S>
- Parameters:
value
- the input argumenttarget
- the input argument- Throws:
java.lang.Exception
- if an error happens
-
-