public class MultiStringWrapper extends BasicStringWrapper
| Constructor and Description |
|---|
MultiStringWrapper(String s,
int numCopies)
Create a MultiStringWrapper by making k copies of s.
|
MultiStringWrapper(String s,
int numCopies,
String delim)
Create a MultiStringWrapper by making k copies of each field of s.
|
MultiStringWrapper(String s,
String delim)
Create a MultiStringWrapper by splitting s into
fields based on the given delimiter.
|
| Modifier and Type | Method and Description |
|---|---|
StringWrapper |
get(int i)
Return the i-th field.
|
int |
getDistanceLearnerIndex(int i)
Return the index of the learner that will process internal field i
|
int |
getFieldIndex(int i)
Return the field i of the original string associated with internal field i
|
static void |
main(String[] args) |
void |
prepare(StringDistance[] innerDistances)
Prepare each field with the appropriate distance
|
void |
set(int i,
StringWrapper w)
Set the i-th field.
|
int |
size()
Return number of fields.
|
String |
toString() |
charAt, hashCode, length, unwrappublic MultiStringWrapper(String s, String delim)
public MultiStringWrapper(String s, int numCopies)
public int size()
public int getDistanceLearnerIndex(int i)
public int getFieldIndex(int i)
public StringWrapper get(int i)
public void set(int i,
StringWrapper w)
public void prepare(StringDistance[] innerDistances)
public String toString()
toString in class BasicStringWrapperpublic static void main(String[] args)
Copyright © 2016. All rights reserved.