public class StringComparison
extends java.lang.Object
Constructor and Description |
---|
StringComparison(java.lang.String input,
java.lang.Object[] objects)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static double |
compare(java.lang.String s1,
java.lang.String s2)
Compare two strings
|
java.lang.String |
getBestMatch()
Get the best match value
|
java.lang.Object[] |
getBestMatchAdvanced()
Will return both the match number, and the actual match string
|
java.lang.Object |
getMatchObject()
Get the object
|
static java.lang.String[] |
sLetterPair(java.lang.String s)
Get an array containing letter pairs
|
static java.util.ArrayList |
wLetterPair(java.lang.String s)
Create an ArrayList containing pairs of letters
|
public StringComparison(java.lang.String input, java.lang.Object[] objects)
input
- Input Base Valueobjects
- Objects to comparepublic static double compare(java.lang.String s1, java.lang.String s2)
s1
- String Bases2
- Objectpublic static java.util.ArrayList wLetterPair(java.lang.String s)
s
- string to splitpublic static java.lang.String[] sLetterPair(java.lang.String s)
s
- string to splitpublic java.lang.Object getMatchObject()
public java.lang.String getBestMatch()
public java.lang.Object[] getBestMatchAdvanced()