com.wcohen.ss.expt
Class MatchData.Instance
java.lang.Object
com.wcohen.ss.BasicStringWrapper
com.wcohen.ss.expt.MatchData.Instance
- All Implemented Interfaces:
- StringWrapper
- Enclosing class:
- MatchData
public static class MatchData.Instance
- extends BasicStringWrapper
A single item (aka record, string, etc) to match against others.
An item has an id (for evaluating correctness of a match), a
source (which relation its from), and a text field. Text is
stored as a StringWrapper so that it can be preprocessed, if
necessary.
Constructor Summary |
MatchData.Instance(java.lang.String source,
java.lang.String id,
java.lang.String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
MatchData.Instance
public MatchData.Instance(java.lang.String source,
java.lang.String id,
java.lang.String text)
getSource
public java.lang.String getSource()
getId
public java.lang.String getId()
sameId
public boolean sameId(MatchData.Instance b)
toString
public java.lang.String toString()
- Overrides:
toString
in class BasicStringWrapper