Stores the count of insert, deletion and substitute operations needed to change one character sequence into another.
This class is immutable.
| Modifier and Type | Field and Description |
|---|---|
| private final Integer | deleteCount
Delete character count. |
| private final Integer | distance
Edit distance. |
| private final Integer | insertCount
Insert character count. |
| private final Integer | substituteCount
Substitute character count. |
| Access | Constructor and Description |
|---|---|
| public | LevenshteinResults(final Integer
distance between two character sequences. distance, final Integer insert character count. insertCount, final Integer delete character count. deleteCount, final Integer substitute character count. substituteCount)Constructs the results for a detailed Levenshtein distance. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public Integer | Returns: delete character count.Gets the number of character deletion needed to change one character sequence to other. |
| public Integer | Returns: distance between two character sequence.Gets the distance between two character sequences. |
| public Integer | Returns: insert character count.Gets the number of insertion needed to change one character sequence into another. |
| public Integer | Returns: substitute character count.Gets the number of character substitution needed to change one character sequence into another. |
| public int | |
| public String |
| deleteCount | back to summary |
|---|---|
| private final Integer deleteCount Delete character count. | |
| distance | back to summary |
|---|---|
| private final Integer distance Edit distance. | |
| insertCount | back to summary |
|---|---|
| private final Integer insertCount Insert character count. | |
| substituteCount | back to summary |
|---|---|
| private final Integer substituteCount Substitute character count. | |
| LevenshteinResults | back to summary |
|---|---|
| public LevenshteinResults(final Integer distance, final Integer insertCount, final Integer deleteCount, final Integer substituteCount) Constructs the results for a detailed Levenshtein distance. | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getDeleteCount | back to summary |
|---|---|
| public Integer getDeleteCount() Gets the number of character deletion needed to change one character sequence to other.
| |
| getDistance | back to summary |
|---|---|
| public Integer getDistance() Gets the distance between two character sequences.
| |
| getInsertCount | back to summary |
|---|---|
| public Integer getInsertCount() Gets the number of insertion needed to change one character sequence into another.
| |
| getSubstituteCount | back to summary |
|---|---|
| public Integer getSubstituteCount() Gets the number of character substitution needed to change one character sequence into another.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |