|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
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(java.lang.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 counterMethod Detail |
---|
public long getCount()
public void inc()
public void add(long l)
l
- value to add ti the counterpublic int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
obj
- element to compare to
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |