Class GrowingMapAlphabet<I>

    • Constructor Detail

      • GrowingMapAlphabet

        public GrowingMapAlphabet()
      • GrowingMapAlphabet

        public GrowingMapAlphabet​(Collection<? extends I> symbols)
    • Method Detail

      • addSymbol

        public int addSymbol​(I a)
        Description copied from interface: GrowingAlphabet
        Adds a new symbol to the alphabet. Some alphabets may prevent symbols from being added twice. In this case, the original alphabet remains unchanged, but this is not considered an error.
        Specified by:
        addSymbol in interface GrowingAlphabet<I>
        Returns:
        the index of the symbol in the alphabet, after adding it.