Package org.apache.juneau.internal
Class IntValue
java.lang.Object
org.apache.juneau.internal.IntValue
A simple settable integer value.
- 
Method SummaryModifier and TypeMethodDescriptionstatic IntValuecreate()Creates a new integer value initialized to0.intget()Returns the value.intReturns the current value and then increments it.static IntValueof(int value) Creates an integer value with the specified initial state.set(int value) Sets the value.
- 
Method Details- 
createCreates a new integer value initialized to0.- Returns:
- A new integer value.
 
- 
ofCreates an integer value with the specified initial state.- Parameters:
- value- The initial state of the value.
- Returns:
- A new integer value.
 
- 
setSets the value.- Parameters:
- value- The new value.
- Returns:
- This object.
 
- 
getReturns the value.- Returns:
- The value.
 
- 
getAndIncrementReturns the current value and then increments it.- Returns:
- The current value.
 
 
-