|
Hyperic HQ Plugin API v. 5.8.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.novadeck.jxla.data.SerializableSimpleData
org.novadeck.jxla.data.SimpleData
public class SimpleData
This class acts like a counter
| Constructor Summary | |
|---|---|
SimpleData()
create a counter with an initial value of 0 |
|
SimpleData(long l)
create a counter with an initial value |
|
| Method Summary | |
|---|---|
void |
add(long l)
increments current value by more than one |
int |
compareTo(Object obj)
to order Objects by counter decreasing |
long |
getCount()
get the count value |
void |
inc()
increments the current value by 1 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleData()
public SimpleData(long l)
l - initila value of the counter| Method Detail |
|---|
public long getCount()
public void inc()
public void add(long l)
l - value to add ti the counterpublic int compareTo(Object obj)
compareTo in interface Comparableobj - element to compare to
|
Hyperic HQ Plugin API v. 5.8.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||