Code example for HashSet

Methods: remove

0
		viewSet.add( view );
	} 
	 
	public void removeViewAtLevel( View view, int level ) {
		HashSet<View> viewSet = map.get( level );
		viewSet.remove( view );
	} 
	 
	public void removeAllViewsAtLevel( int level ) {
		map.remove( level );
	} 
	 
	public boolean removeView( View view ){
		for(Entry<Integer, HashSet<View>> e : map.entrySet()){
			HashSet<View> viewSet = e.getValue();
			Iterator<View> iterator = viewSet.iterator();
			while(iterator.hasNext()) {
				View comparison = iterator.next();
				if( comparison == view ) {
					iterator.remove();
					return true;