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