public void removeObserver(String notificationName,Object notifyContext){
  List<Observer> observers=observerMap.get(notificationName);
  if (observers != null) {
    for (int i=0; i < observers.size(); i++) {
      BaseObserver observer=(BaseObserver)observers.get(i);
      if (observer.compareNotifyContext(notifyContext)) {
        observers.remove(observer);
      }
    }
    if (observers.size() == 0) {
      observerMap.remove(notificationName);
    }
  }
}

public void removeObserver ( String notificationName , Object notifyContext ) { List < Observer > observers = observerMap . get ( notificationName ) ; if ( observers != null ) { for ( int i = 0 ; i < observers . size ( ) ; i ++ ) { BaseObserver observer = ( BaseObserver ) observers . get ( i ) ; if ( observer . compareNotifyContext ( notifyContext ) ) { observers . remove ( observer ) ; } } if ( observers . size ( ) == 0 ) { observerMap . remove ( notificationName ) ; } } }
remove the observer for a given notifycontext from an observer list for a given notification name .
