Code example for CopyOnWriteArrayList

Methods: remove

0
    	public void addHandler(ILineHandler handler) {
    		delegates.add(handler);
    	} 
    	 
    	public void removeHandler(ILineHandler handler) {
    		delegates.remove(handler);
    	} 
    	 
		@Override 
		public void start(Process process) { 
			for (ILineHandler delegate : delegates) {
				delegate.start(process);
			} 
		} 
 
		@Override 
		public void newLine(String line) {
			for (ILineHandler delegate : delegates) {
				delegate.newLine(line);
			} 
		}