public class LevenshteinResults extends Object
Stores the count of insert, deletion and substitute operations needed to change one character sequence into another.
This class is immutable.
Constructor and Description |
---|
LevenshteinResults(Integer distance,
Integer insertCount,
Integer deleteCount,
Integer substituteCount)
Create the results for a detailed Levenshtein distance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Integer |
getDeleteCount()
Get the number of character deletion needed to change one character sequence to other.
|
Integer |
getDistance()
Get the distance between two character sequences.
|
Integer |
getInsertCount()
Get the number of insertion needed to change one character sequence into another.
|
Integer |
getSubstituteCount()
Get the number of character substitution needed to change one character sequence into another.
|
int |
hashCode() |
String |
toString() |
public LevenshteinResults(Integer distance, Integer insertCount, Integer deleteCount, Integer substituteCount)
distance
- distance between two character sequences.insertCount
- insert character countdeleteCount
- delete character countsubstituteCount
- substitute character countpublic Integer getDistance()
public Integer getInsertCount()
public Integer getDeleteCount()
public Integer getSubstituteCount()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.