private void callStateListeners(){
  StateType newState=state.get();
  ArrayList<ActivityStateListener> list=stateListeners.get(newState);
  if (list != null) {
    for (    ActivityStateListener listener : list) {
      listener.stateChanged(newState,this);
    }
  }
}

private void callStateListeners ( ) { StateType newState = state . get ( ) ; ArrayList < ActivityStateListener > list = stateListeners . get ( newState ) ; if ( list != null ) { for ( ActivityStateListener listener : list ) { listener . stateChanged ( newState , this ) ; } } }
calls the listeners . this function is not called from this class because implementors need to decide when they are ready to report the state change to interested objects .
