public void triggerEvent(EEvent event,Bundle data){
  Set<Subscribe> registerList=mEvents.get(event);
  if (registerList == null) {
    return;
  }
  if (!registerList.isEmpty()) {
    for (Iterator<Subscribe> it=registerList.iterator(); it.hasNext(); ) {
      Subscribe subscribe=it.next();
      subscribe.update(event,data);
    }
  }
}

public void triggerEvent ( EEvent event , Bundle data ) { Set < Subscribe > registerList = mEvents . get ( event ) ; if ( registerList == null ) { return ; } if ( ! registerList . isEmpty ( ) ) { for ( Iterator < Subscribe > it = registerList . iterator ( ) ; it . hasNext ( ) ; ) { Subscribe subscribe = it . next ( ) ; subscribe . update ( event , data ) ; } } }
trigger event and all object which register this event will observe this event
