Code example for HashSet

Methods: isEmpty, remove

0
		} 
 
		@Override 
		public void run() { 
			player.release();
			players.remove(player);
			if (players.isEmpty()) {
				stopSelfResult(lastStartId);
			} 
		} 
	} 
 
	/* 
	 * (non-Javadoc) 
	 *  
	 * @see android.app.Service#onBind(android.content.Intent) 
	 */ 
	@Override 
	public IBinder onBind(Intent arg0) {
		return null; 
	}