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 DaitchMokotoffSoundex.BranchcreateBranch()Creates a new branch, identical to this branch.booleanequals(java.lang.Object other)voidfinish()Finish this branch by appending '0's until the maximum code length has been reached.inthashCode()voidprocessNextReplacement(java.lang.String replacement, boolean forceAppend)Process the next replacement to be added to this branch.java.lang.StringtoString()
-
-
-
Method Detail
-
createBranch
public 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
public 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
public void processNextReplacement(java.lang.String replacement, boolean forceAppend)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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-