Code example for IdentityHashMap

Methods: remove

0
	public boolean add(Object o) {
		return map.put( o, DUMP_VALUE ) == null;
	} 
 
	public boolean remove(Object o) {
		return map.remove( o ) == DUMP_VALUE;
	} 
 
	public boolean containsAll(Collection c) {
		Iterator it = c.iterator();
		while ( it.hasNext() ) {
			if ( !map.containsKey( it.next() ) ) {
				return false; 
			} 
		} 
		return true; 
	} 
 
	public boolean addAll(Collection c) {
		Iterator it = c.iterator();
		boolean changed = false;