@Test public void testInstance() throws Exception { StartedState one = StartedState.getInstance(); assertTrue(one == StartedState.getInstance()); assertEquals(StartedState.getInstance(), one); assertEquals(StartedState.class.getSimpleName(), one.toString()); }
public static StartedState getInstance() { if (instance == null) { instance = new StartedState(); } return instance; }
StartedState extends ComponentStateImp { public static StartedState getInstance() { if (instance == null) { instance = new StartedState(); } return instance; } }
StartedState extends ComponentStateImp { public static StartedState getInstance() { if (instance == null) { instance = new StartedState(); } return instance; } private  StartedState(); }
StartedState extends ComponentStateImp { public static StartedState getInstance() { if (instance == null) { instance = new StartedState(); } return instance; } private  StartedState(); @Override void requestStop(StateManagedComponent comp); @Override void requestClose(StateManagedComponent comp); @Override void requestInit(StateManagedComponent comp); static StartedState getInstance(); }
StartedState extends ComponentStateImp { public static StartedState getInstance() { if (instance == null) { instance = new StartedState(); } return instance; } private  StartedState(); @Override void requestStop(StateManagedComponent comp); @Override void requestClose(StateManagedComponent comp); @Override void requestInit(StateManagedComponent comp); static StartedState getInstance();  }