java.lang.Object | |
↳ | com.microstrategy.webapi.IntWrapper |
A mutable wrapper for the int primitive. Used when multiple return values are required from a function, and some are ints.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
IntWrapper()
Default constructor.
| |||||||||||
IntWrapper(int startval)
This constructor sets the internal value to the passed value.
| |||||||||||
IntWrapper(String data)
Constructor that sets the wrapped integer to the int value of the string variable passed in.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int |
getInt()
getter method for the wrapped integer
| ||||||||||
String |
getString()
Returns the wrapped integer as a String variable.
| ||||||||||
void |
setInt(int newval)
setter method for the wrapped integer
| ||||||||||
void |
setString(String val)
Sets the wrapped integer to the integer representation of the string that is passed in.
| ||||||||||
String |
toString()
Overrides toString on java.lang.Object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Default constructor. Sets the wrapped integer to 0.
This constructor sets the internal value to the passed value.
startval | The initial value of the wrapped int. |
---|
Constructor that sets the wrapped integer to the int value of the string variable passed in.
data | This argument will be converted to an integer and the wrapped int will be set to it. The wrapped int will be set to 0 instead if it cannot be converted into an integer. |
---|
getter method for the wrapped integer
Returns the wrapped integer as a String variable.
setter method for the wrapped integer
newval | The value that the wrapped integer will be set to. |
---|
Sets the wrapped integer to the integer representation of the string that is passed in.
val | The value that the wrapped integer will be set to. If this argument cannot be successfully be changed to an int, the wrapped integer will be set to 0. |
---|
Overrides toString on java.lang.Object.