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 TypeMethodDescriptionprivate DaitchMokotoffSoundex.BranchCreates a new branch, identical to this branch.booleanprivate voidfinish()Finish this branch by appending '0's until the maximum code length has been reached.inthashCode()private voidprocessNextReplacement(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
private 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 append.forceAppend- indicates if the default processing shall be overridden.
-
toString
-