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 ); 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE