Package com.vladsch.plugin.util
Class ListenerNotifier<L>
- java.lang.Object
-
- com.vladsch.plugin.util.ListenerNotifier<L>
-
public class ListenerNotifier<L> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceListenerNotifier.RunnableNotifier<L>
-
Constructor Summary
Constructors Constructor Description ListenerNotifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(L listener)voidaddListener(L listener, @Nullable ListenerNotifier.RunnableNotifier<L> runnableNotifier)java.util.HashSet<java.lang.ref.WeakReference<L>>getListeners()voidnotifyListeners(@NotNull ListenerNotifier.RunnableNotifier<L> runnableNotifier)voidremoveListener(L listener)voidremoveListener(L listener, @Nullable ListenerNotifier.RunnableNotifier<L> runnableNotifier)
-
-
-
Field Detail
-
listeners
protected final java.util.HashSet<java.lang.ref.WeakReference<L>> listeners
-
-
Method Detail
-
getListeners
public java.util.HashSet<java.lang.ref.WeakReference<L>> getListeners()
-
addListener
public void addListener(@NotNull L listener)
-
addListener
public void addListener(@NotNull L listener, @Nullable @Nullable ListenerNotifier.RunnableNotifier<L> runnableNotifier)
-
removeListener
public void removeListener(@NotNull L listener)
-
removeListener
public void removeListener(@NotNull L listener, @Nullable @Nullable ListenerNotifier.RunnableNotifier<L> runnableNotifier)
-
notifyListeners
public void notifyListeners(@NotNull @NotNull ListenerNotifier.RunnableNotifier<L> runnableNotifier)
-
-