public class AnalystClassItem extends java.lang.Object implements java.lang.Comparable<AnalystClassItem>
| Constructor and Description |
|---|
AnalystClassItem(java.lang.String theCode,
java.lang.String theName,
int theCount)
Construct a class item.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AnalystClassItem o) |
java.lang.String |
getCode() |
int |
getCount() |
java.lang.String |
getName() |
void |
increaseCount()
Increase the count.
|
void |
setCode(java.lang.String theCode) |
void |
setName(java.lang.String theName) |
java.lang.String |
toString() |
public AnalystClassItem(java.lang.String theCode,
java.lang.String theName,
int theCount)
theCode - The code, this is how it is in the CSV.theName - The name, a more meaningful name than code.
Can be the same as code, if desired.theCount - The count.public int compareTo(AnalystClassItem o)
compareTo in interface java.lang.Comparable<AnalystClassItem>public java.lang.String getCode()
public int getCount()
public java.lang.String getName()
public void increaseCount()
public void setCode(java.lang.String theCode)
theCode - the code to setpublic void setName(java.lang.String theName)
theName - the name to setpublic java.lang.String toString()
toString in class java.lang.Object