com.github.liblevenshtein.collection.dictionary.IFinalFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liblevenshtein-lite Show documentation
Show all versions of liblevenshtein-lite Show documentation
A library for spelling-correction based on Levenshtein Automata.
package com.github.liblevenshtein.collection.dictionary;
import java.io.Serializable;
/**
* Specifies the necessary methods for functors that return whether nodes of
* some type represent the final states of an automaton.
* @author Dylon Edwards
* @param Kind of the state this function accepts.
* @since 2.1.0
*/
public interface IFinalFunction extends Serializable {
/**
* Whether the state represents the last character of some term.
* @param current State to check for finality.
* @return Whether this node represents the last character of some term.
*/
boolean at(State current);
}