Class Listeners<L,E>
- java.lang.Object
-
- io.annot8.implementations.support.listeners.Listeners<L,E>
-
public class Listeners<L,E> extends Object
-
-
Constructor Summary
Constructors Constructor Description Listeners(BiConsumer<L,E> publish)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidderegister(L listener)voidfire(E event)Deregisterregister(L listener)
-
-
-
Constructor Detail
-
Listeners
public Listeners(BiConsumer<L,E> publish)
-
-
Method Detail
-
register
public Deregister register(L listener)
-
deregister
public void deregister(L listener)
-
fire
public void fire(E event)
-
clear
public void clear()
-
-