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