Package net.anwiba.commons.model
Class ListenerList<L>
- java.lang.Object
-
- net.anwiba.commons.model.ListenerList<L>
-
public class ListenerList<L> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ListenerList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(L listener)voidclear()booleancontains(L listener)voidforAllDo(IProcedure<L,java.lang.RuntimeException> procedure)voidforAllDoLastListenerFirst(IProcedure<L,java.lang.RuntimeException> procedure)ListenerList<L>getClone()intgetSize()booleanisEmpty()voidremove(L listener)
-
-
-
Method Detail
-
add
public void add(L listener)
-
remove
public void remove(L listener)
-
forAllDo
public void forAllDo(IProcedure<L,java.lang.RuntimeException> procedure)
-
forAllDoLastListenerFirst
public void forAllDoLastListenerFirst(IProcedure<L,java.lang.RuntimeException> procedure)
-
getClone
public ListenerList<L> getClone()
-
contains
public boolean contains(L listener)
-
clear
public void clear()
-
isEmpty
public boolean isEmpty()
-
getSize
public int getSize()
-
-