All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.liblevenshtein.collection.dictionary.IFinalFunction Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy