Code example for CopyOnWriteArrayList

Methods: add

0
		return knownNodes; 
	} 
 
	@Override 
	public void addDiscoveryListener( final DiscoveryListener l ) { 
		listener.add( l ); 
	} 
 
	@Override 
	public void removeDiscoveryListener( final DiscoveryListener l ) { 
		listener.remove( l ); 
	} 
}