public boolean remove(AccessibleState state){
  if (states == null) {
    return false;
  }
 else {
    return states.removeElement(state);
  }
}

public boolean remove ( AccessibleState state ) { if ( states == null ) { return false ; } else { return states . removeElement ( state ) ; } }
removes a state from the current state set . if the state is not in the set , the state set will be unchanged and the return value will be false . if the state is in the state set , it will be removed from the set and the return value will be true .
