@Override public void run() { if (isCompleted) return;// Check if already closed isCompleted = true; // Initialize the close sequence // The state will try to move to the final state currentState.initClose(); } });
@Override public void run() { if (isCompleted) return;// Check if already closed isCompleted = true; // Initialize the close sequence // The state will try to move to the final state currentState.initClose(); } });
@Override public void run() { if (isCompleted) return;// Check if already closed isCompleted = true; // Initialize the close sequence // The state will try to move to the final state currentState.initClose(); } });