|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.frascati.examples.counter.lib.CounterServiceImpl
public class CounterServiceImpl
A simple implementation of the CounterService interface.
| Field Summary | |
|---|---|
protected int |
value
Internal state of the counter. |
| Constructor Summary | |
|---|---|
CounterServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
decrement(int v)
Decrement the counter value. |
int |
getValue()
Return the counter value. |
void |
increment(int v)
Increment the counter value. |
void |
resetIt()
Reset the counter value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int value
| Constructor Detail |
|---|
public CounterServiceImpl()
| Method Detail |
|---|
public int getValue()
getValue in interface CounterServicepublic void increment(int v)
increment in interface CounterServicepublic void decrement(int v)
decrement in interface CounterServicepublic void resetIt()
resetIt in interface CounterService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||