static class TagDiff.TagCount
extends java.lang.Object
implements java.lang.Comparable
| Modifier and Type | Field and Description |
|---|---|
int |
comparisonType
Comparison type.
|
int |
correct
Correctly tagged count.
|
int |
incorrect
Incorrectly tagged count.
|
java.lang.String |
tag
The tag string.
|
| Constructor and Description |
|---|
TagDiff.TagCount(java.lang.String tag)
Create tag count object.
|
TagDiff.TagCount(java.lang.String tag,
int correct,
int incorrect)
Create tag count object with given counts.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object object)
Compare this object to another.
|
double |
percentageIncorrect()
Get percentage of incorrect tags.
|
void |
setComparisonType(int comparisonType)
Set comparison type.
|
java.lang.String |
toString()
Convert to string.
|
void |
update(int correct,
int incorrect)
Update counts.
|
public java.lang.String tag
public int correct
public int incorrect
public int comparisonType
public TagDiff.TagCount(java.lang.String tag)
tag - The tag string.public TagDiff.TagCount(java.lang.String tag,
int correct,
int incorrect)
tag - The tag string.correct - Correct tag count.incorrect - Incorrect tag count.public void setComparisonType(int comparisonType)
public void update(int correct,
int incorrect)
correct - Number of correct entries to add.incorrect - Number of incorrect entries to add.public double percentageIncorrect()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object object)
compareTo in interface java.lang.Comparableobject - Other object.We only compare the tags.