Package ch.hslu.exercises.sw08.ex2
Class AtomicCounter
java.lang.Object
ch.hslu.exercises.sw08.ex2.AtomicCounter
- All Implemented Interfaces:
Counter
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AtomicCounter
public AtomicCounter()Erzeugt einen Zähler mit Zählerstand 0.
-
-
Method Details
-
increment
public int increment()see ch.hslu.ad.exercise.sw07.count.Counter#increment() -
decrement
public int decrement()see ch.hslu.ad.exercise.sw07.count.Counter#decrement() -
get
public int get()see ch.hslu.ad.exercise.sw07.count.Counter#get()
-