|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.statistics.Stat
public class Stat
This is a primitive class to represent a single statistic, which will generally be a key value pair but with the capabilities for being sorted Note: this class has a natural ordering that is inconsistent with equals
| Method Summary | |
|---|---|
int |
compareTo(Object o)
compare the current object to the given object returning -1 if o is less than the current object, 0 if they are the same, and +1 if o is greater than the current object. |
String |
getKey()
get the key (text describing) the statistic |
String |
getReference()
get the reference to related statistic information |
String |
getUnits()
get the unts that this statistic is measured in |
int |
getValue()
get the value of the statistic |
void |
setKey(String key)
set the reference information |
void |
setReference(String reference)
set the reference information |
void |
setUnits(String unit)
set the units of this statistic |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void setUnits(String unit)
unit - the units that this statistic is measured inpublic String getUnits()
public int getValue()
public String getKey()
public String getReference()
public void setKey(String key)
key - the key for this statisticpublic void setReference(String reference)
reference - the reference for this statisticpublic int compareTo(Object o)
compareTo in interface Comparableo - the object to compare to the current one
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||