* Draft - Added possibility to hide (and show again) cards from the picked cards area.

This commit is contained in:
LevelX2 2014-11-22 18:19:59 +01:00
parent 4622973639
commit bf3fa37e5d
6 changed files with 217 additions and 31 deletions

View file

@ -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)) {