public int removeEventFromState(EventBean oldEvent){
  int currentSize=currentStates.size();
  List<RegexNFAStateEntry> keepList=removeEventFromState(oldEvent,currentStates.iterator());
  if (randomAccess != null) {
    randomAccess.remove(oldEvent);
  }
  currentStates=keepList;
  return currentSize - keepList.size();
}

public int removeEventFromState ( EventBean oldEvent ) { int currentSize = currentStates . size ( ) ; List < RegexNFAStateEntry > keepList = removeEventFromState ( oldEvent , currentStates . iterator ( ) ) ; if ( randomAccess != null ) { randomAccess . remove ( oldEvent ) ; } currentStates = keepList ; return currentSize - keepList . size ( ) ; }
remove an event from state .
