@Test public void testSymbols() { populate(testMap, stateMap1); final Collection<Character> symbols = testMap.symbols(); Assert.assertEquals(NUM_SYMBOLS + 1, symbols.size()); Assert.assertTrue(symbols.contains(null)); for (int i = 0; i < NUM_SYMBOLS; i++) { Assert.assertTrue(symbols.contains(Character.valueOf((char) i))); } }
@Override public Collection<S> symbols() { final Set<S> set = new HashSet<>(); for (final IEdgeMap<S> edgeMap : map.values()) { set.addAll(edgeMap.getSymbols()); } return Collections.unmodifiableCollection(set); }
StateMap implements IStateMap<S> { @Override public Collection<S> symbols() { final Set<S> set = new HashSet<>(); for (final IEdgeMap<S> edgeMap : map.values()) { set.addAll(edgeMap.getSymbols()); } return Collections.unmodifiableCollection(set); } }
StateMap implements IStateMap<S> { @Override public Collection<S> symbols() { final Set<S> set = new HashSet<>(); for (final IEdgeMap<S> edgeMap : map.values()) { set.addAll(edgeMap.getSymbols()); } return Collections.unmodifiableCollection(set); }  }
StateMap implements IStateMap<S> { @Override public Collection<S> symbols() { final Set<S> set = new HashSet<>(); for (final IEdgeMap<S> edgeMap : map.values()) { set.addAll(edgeMap.getSymbols()); } return Collections.unmodifiableCollection(set); }  @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 Collection<S> symbols() { final Set<S> set = new HashSet<>(); for (final IEdgeMap<S> edgeMap : map.values()) { set.addAll(edgeMap.getSymbols()); } return Collections.unmodifiableCollection(set); }  @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();  }