@Test public void testOptimize() { populate(testMap, stateMap1); verifyStateMap(stateMap1, testMap); testMap.optimize(); verifyOptimized(testMap); optimizeStateMap(stateMap1); verifyStateMap(stateMap1, testMap); populate(testMap, stateMap2); verifyStateMap(stateMap2, testMap); testMap.optimize(); verifyOptimized(testMap); optimizeStateMap(stateMap2); verifyStateMap(stateMap2, testMap); }
@Override public void optimize() { for (final IEdgeMap<S> edgeMap : map.values()) { edgeMap.optimize(); } }
StateMap implements IStateMap<S> { @Override public void optimize() { for (final IEdgeMap<S> edgeMap : map.values()) { edgeMap.optimize(); } } }
StateMap implements IStateMap<S> { @Override public void optimize() { for (final IEdgeMap<S> edgeMap : map.values()) { edgeMap.optimize(); } }  }
StateMap implements IStateMap<S> { @Override public void optimize() { for (final IEdgeMap<S> edgeMap : map.values()) { edgeMap.optimize(); } }  @Override IEdgeMap<S> get(final int state_); @Override void optimize(); @Override IEdgeMap<S> put(final int state_, final IEdgeMap<S> edgeMap_); @Override int[] states(); @Override Collection<S> symbols(); }
StateMap implements IStateMap<S> { @Override public void optimize() { for (final IEdgeMap<S> edgeMap : map.values()) { edgeMap.optimize(); } }  @Override IEdgeMap<S> get(final int state_); @Override void optimize(); @Override IEdgeMap<S> put(final int state_, final IEdgeMap<S> edgeMap_); @Override int[] states(); @Override Collection<S> symbols();  }