forked from External/mage
* Draft - Added possibility to hide (and show again) cards from the picked cards area.
This commit is contained in:
parent
4622973639
commit
bf3fa37e5d
6 changed files with 217 additions and 31 deletions
|
|
@ -35,10 +35,11 @@ import java.util.concurrent.CopyOnWriteArrayList;
|
|||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
* @param <E>
|
||||
*/
|
||||
public abstract class EventDispatcher<E extends Event> implements Serializable {
|
||||
|
||||
private List<Listener<E>> listeners = new CopyOnWriteArrayList<Listener<E>>();
|
||||
private final List<Listener<E>> listeners = new CopyOnWriteArrayList<>();
|
||||
|
||||
public void addListener(Listener<E> listener) {
|
||||
if (!listeners.contains(listener)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue