2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
5 package org.apidesign.openfixed;
8 import java.util.concurrent.CopyOnWriteArrayList;
9 import org.apidesign.openfixed.Calculator.EventSupport;
13 * @author Jaroslav Tulach <jtulach@netbeans.org>
15 final class TrivialEventSupport implements EventSupport {
16 List<ModificationListener> listener = new CopyOnWriteArrayList<ModificationListener>();
18 TrivialEventSupport() {
21 // BEGIN: openfixed.trivial
23 public void fireModificationEvent(ModificationEvent ev) {
24 for (ModificationListener l : listener) {
28 // END: openfixed.trivial
31 public void add(ModificationListener l) {
36 public void remove(ModificationListener l) {