com.github.liblevenshtein.collection.dictionary.FinalDawgNode 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.util.Map;
/**
* Final element of a DAWG structure (Directed Acyclic Word Graph).
* Currently, this is tightly-coupled with character-node types.
*/
public class FinalDawgNode extends DawgNode {
private static final long serialVersionUID = 1L;
/**
* Constructs a new {@link FinalDawgNode}, which acts just like a
* {@link DawgNode} except that {@link #isFinal()} returns true.
*/
public FinalDawgNode() {
super();
}
/**
* Constructs a new {@link FinalDawgNode}, which acts just like a
* {@link DawgNode} except that {@link #isFinal()} returns true.
* @param edges Outgoing edges of this node.
*/
public FinalDawgNode(final Map edges) {
super(edges);
}
/**
* {@inheritDoc}
*/
@Override
public boolean isFinal() {
return true;
}
}