Code example for Collection

Methods: isEmpty, remove

0
			ticking.add( span );
		} 
	} 
	 
	private synchronized void stop( BasicSpan span ){
		ticking.remove( span );
		if( ticking.isEmpty() ){
			timer.stop();
		} 
	} 
	 
	private synchronized void tick(){ 
		long now = System.nanoTime();
		for( BasicSpan span : ticking.toArray( new BasicSpan[ ticking.size() ] ) ){
			span.tick( now );
		} 
	} 
	 
	private class BasicSpan implements Span { 
		private SpanCallback callback;
		private Map<SpanMode, Integer> sizes = new HashMap<SpanMode, Integer>( 2 );