Package com.mchange.v2.holders
Class SynchronizedIntHolder
- java.lang.Object
-
- com.mchange.v2.holders.SynchronizedIntHolder
-
- All Implemented Interfaces:
ThreadSafeIntHolder
,java.io.Serializable
public class SynchronizedIntHolder extends java.lang.Object implements ThreadSafeIntHolder, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedIntHolder()
SynchronizedIntHolder(int value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decrement()
int
getValue()
void
increment()
void
setValue(int value)
-
-
-
Method Detail
-
getValue
public int getValue()
- Specified by:
getValue
in interfaceThreadSafeIntHolder
-
setValue
public void setValue(int value)
- Specified by:
setValue
in interfaceThreadSafeIntHolder
-
increment
public void increment()
-
decrement
public void decrement()
-
-