public final class FuzzyMatchingPathStep<T>
extends java.lang.Object
Constructor and Description |
---|
FuzzyMatchingPathStep(FuzzyMatchingPathStep<T> previousStep,
FuzzyMatchingStep stepType,
T mainValue,
T secondaryValue,
double cost)
Create a step in fuzzy matching
|
Modifier and Type | Method and Description |
---|---|
double |
getCost()
Returns the cost of performing this step
|
T |
getMainValue()
Returns the main value compared for this step
|
FuzzyMatchingPathStep<T> |
getPreviousStep()
Returns the previous step, or null if this was the first step
|
T |
getSecondaryValue()
Returns the secondary value compared for this step
|
FuzzyMatchingStep |
getStepType()
Returns the type of step
|
public FuzzyMatchingPathStep(FuzzyMatchingPathStep<T> previousStep, FuzzyMatchingStep stepType, T mainValue, T secondaryValue, double cost)
previousStep
- The step that came before, or null if this is the first stepstepType
- The type of step, such as substitution, deletion, insertion, or matchmainValue
- The value from the main thing that was comparedsecondaryValue
- The value from the secondary set that was comparedcost
- The cost of performing this steppublic double getCost()
public FuzzyMatchingPathStep<T> getPreviousStep()
public FuzzyMatchingStep getStepType()
public T getMainValue()
public T getSecondaryValue()