Class DoubleMetaphone.DoubleMetaphoneResult
java.lang.Object
org.apache.commons.codec.language.DoubleMetaphone.DoubleMetaphoneResult
- Enclosing class:
- DoubleMetaphone
Stores results, since there is the optional alternate encoding.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
append
(char value) Appends the given value as primary and alternative.void
append
(char primary, char alternate) Appends the given primary and alternative values.void
Appends the given value as primary and alternative.void
Appends the given primary and alternative values.void
appendAlternate
(char value) Appends the given value as alternative.void
appendAlternate
(String value) Appends the given value as alternative.void
appendPrimary
(char value) Appends the given value as primary.void
appendPrimary
(String value) Appends the given value as primary.Gets the alternate string.Gets the primary string.boolean
Tests whether this result is complete.
-
Constructor Details
-
DoubleMetaphoneResult
Constructs a new instance.- Parameters:
maxLength
- The maximum length.
-
-
Method Details
-
append
Appends the given value as primary and alternative.- Parameters:
value
- The value to append.
-
append
Appends the given primary and alternative values.- Parameters:
primary
- The primary value.alternate
- The alternate value.
-
append
Appends the given value as primary and alternative.- Parameters:
value
- The value to append.
-
append
Appends the given primary and alternative values.- Parameters:
primary
- The primary value.alternate
- The alternate value.
-
appendAlternate
Appends the given value as alternative.- Parameters:
value
- The value to append.
-
appendAlternate
Appends the given value as alternative.- Parameters:
value
- The value to append.
-
appendPrimary
Appends the given value as primary.- Parameters:
value
- The value to append.
-
appendPrimary
Appends the given value as primary.- Parameters:
value
- The value to append.
-
getAlternate
Gets the alternate string.- Returns:
- the alternate string.
-
getPrimary
Gets the primary string.- Returns:
- the primary string.
-
isComplete
Tests whether this result is complete.- Returns:
- whether this result is complete.
-