Code example for Object

Methods: equals

0
    	contentObservers.put( uri, observer ); 
    } 
     
    @Implementation 
    public void unregisterContentObserver( ContentObserver observer ) { 
    	if ( observer != null && contentObservers.containsValue( observer ) ) { 
    		Set<Entry<Uri,ContentObserver>> entries = contentObservers.entrySet(); 
    		for ( Entry<Uri,ContentObserver> e : entries ) { 
    			ContentObserver other = e.getValue(); 
    			if ( observer == other || observer.equals(other) ) { 
    	        	contentObservers.remove( e.getKey() ); 
    	        	return; 
    			} 
    		} 
    	} 
    } 
     
    /** 
     * Non-Android accessor.  Clears the list of registered content observers. 
     * Commonly used in test case setup.