Class DaitchMokotoffSoundex.Branch
java.lang.Object
org.apache.commons.codec.language.DaitchMokotoffSoundex.Branch
- Enclosing class:
DaitchMokotoffSoundex
Inner class representing a branch during DM soundex encoding.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new branch, identical to this branch.boolean
void
finish()
Finish this branch by appending '0's until the maximum code length has been reached.int
hashCode()
void
processNextReplacement
(String replacement, boolean forceAppend) Process the next replacement to be added to this branch.toString()
-
Field Details
-
builder
-
cachedString
-
lastReplacement
-
-
Constructor Details
-
Branch
private Branch()
-
-
Method Details
-
createBranch
Creates a new branch, identical to this branch.- Returns:
- a new, identical branch
-
equals
-
finish
public void finish()Finish this branch by appending '0's until the maximum code length has been reached. -
hashCode
public int hashCode() -
processNextReplacement
Process the next replacement to be added to this branch.- Parameters:
replacement
- the next replacement to appendforceAppend
- indicates if the default processing shall be overridden
-
toString
-