Interface AdaptiveMealyBuilder<I,​O>

    • Method Detail

      • insert

        boolean insert​(Word<? extends I> inputWord,
                       Word<? extends O> outputWord)
        Incorporates a pair of input/output words into the stored information.
        Parameters:
        inputWord - the input word
        outputWord - the corresponding output word
        Returns:
        true if the inserted output word has overridden existing information, false otherwise.
      • getOldestInput

        @Nullable Word<I> getOldestInput()
        Returns the oldest, non-overridden input that has been introduced and persisted.
        Returns:
        the Word representing the oldest stored input, null if the cache is empty.