Class DaitchMokotoffSoundex.Branch
- java.lang.Object
-
- org.apache.commons.codec.language.DaitchMokotoffSoundex.Branch
-
- Enclosing class:
- DaitchMokotoffSoundex
private static final class DaitchMokotoffSoundex.Branch extends java.lang.ObjectInner class representing a branch during DM Soundex encoding.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringBuilderbuilderprivate java.lang.StringcachedStringprivate java.lang.StringlastReplacement
-
Constructor Summary
Constructors Modifier Constructor Description privateBranch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private DaitchMokotoffSoundex.BranchcreateBranch()Creates a new branch, identical to this branch.booleanequals(java.lang.Object other)private voidfinish()Finish this branch by appending '0's until the maximum code length has been reached.inthashCode()private voidprocessNextReplacement(java.lang.String replacement, boolean forceAppend)Process the next replacement to be added to this branch.java.lang.StringtoString()
-
-
-
Method Detail
-
createBranch
private DaitchMokotoffSoundex.Branch createBranch()
Creates a new branch, identical to this branch.- Returns:
- a new, identical branch.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
finish
private void finish()
Finish this branch by appending '0's until the maximum code length has been reached.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
processNextReplacement
private void processNextReplacement(java.lang.String replacement, boolean forceAppend)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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-