Package com.mchange.v2.holders
Class SynchronizedIntHolder
java.lang.Object
com.mchange.v2.holders.SynchronizedIntHolder
- All Implemented Interfaces:
ThreadSafeIntHolder
,Serializable
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SynchronizedIntHolder
public SynchronizedIntHolder(int value) -
SynchronizedIntHolder
public SynchronizedIntHolder()
-
-
Method Details
-
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()
-