Package com.mchange.v2.holders
Class ChangeNotifyingSynchronizedIntHolder
- java.lang.Object
-
- com.mchange.v2.holders.ChangeNotifyingSynchronizedIntHolder
-
- All Implemented Interfaces:
ThreadSafeIntHolder
,java.io.Serializable
public final class ChangeNotifyingSynchronizedIntHolder extends java.lang.Object implements ThreadSafeIntHolder, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChangeNotifyingSynchronizedIntHolder()
ChangeNotifyingSynchronizedIntHolder(int value, boolean notify_all)
-
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()
-
-