Interface SupportsGrowingAlphabet<I>

    • Method Detail

      • addAlphabetSymbol

        void addAlphabetSymbol​(I symbol)
        Notifies the data structure that a new symbol should be added to the alphabet. Behavior depends on the implementation:
        • After adding a new symbol, the symbol-related data may either be initialized with default values or undefined.
        • Duplicate symbols may: (1) be handled accordingly, (2) be ignored or (3) result in an error.
        Some data structures may need to be properly initialized (e.g. with a GrowingAlphabet) to handle potentially shared state across multiple instances. If the needed requirements are not met, a GrowingAlphabetNotSupportedException can be thrown.
        Parameters:
        symbol - the symbol to add to the alphabet.
        Throws:
        GrowingAlphabetNotSupportedException - if the data structure was not properly initialized (e.g. with a GrowingAlphabet).