/** * Calls cleanup on attached states, do not call directly. */ public void cleanup(){ AppState[] array = getStates(); for (AppState state : array){ state.cleanup(); } } }
protected void terminatePending(){ AppState[] array = getTerminating(); if (array.length == 0) return; for (AppState state : array) { state.cleanup(); } synchronized( states ) { // Remove just the states that were terminated... // which might now be a subset of the total terminating // list. terminating.removeAll(Arrays.asList(array)); } }
/** * Calls cleanup on attached states, do not call directly. */ public void cleanup(){ AppState[] array = getStates(); for (AppState state : array){ state.cleanup(); } } }
/** * Calls cleanup on attached states, do not call directly. */ public void cleanup(){ AppState[] array = getStates(); for (AppState state : array){ state.cleanup(); } } }
protected void terminatePending(){ AppState[] array = getTerminating(); for (AppState state : array) { state.cleanup(); } synchronized( states ) { // Remove just the states that were terminated... // which might now be a subset of the total terminating // list. terminating.removeAll(Arrays.asList(array)); } }
protected void terminatePending(){ AppState[] array = getTerminating(); if (array.length == 0) return; for (AppState state : array) { state.cleanup(); } synchronized( states ) { // Remove just the states that were terminated... // which might now be a subset of the total terminating // list. terminating.removeAll(Arrays.asList(array)); } }