Java org.apache.commons.lang.mutable MutableInt fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.lang.mutable MutableInt fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.lang.mutable MutableInt.

The text is from its open source code.

Subclass

org.apache.commons.lang.mutable.MutableInt has subclasses.
Click this link to see all its subclasses.

Constructor

MutableInt()
Constructs a new MutableInt with the default value of zero.
MutableInt(int value)
Constructs a new MutableInt with the specified value.
MutableInt(Number value)
Constructs a new MutableInt with the specified value.

Method

voidadd(int operand)
Adds a value.
voidadd(Number operand)
Adds a value.
voiddecrement()
Decrements the value.
ObjectgetValue()
Gets the value as a Integer instance.
voidincrement()
Increments the value.
intintValue()
Returns the value of this MutableInt as a int.
longlongValue()
Returns the value of this MutableInt as a long.
voidsetValue(int value)
Sets the value.
voidsetValue(Object value)
Sets the value from any Number instance.
voidsubtract(int operand)
Subtracts a value.
voidsubtract(Number operand)
Subtracts a value.
IntegertoInteger()
Gets this mutable as an instance of Integer.
StringtoString()
Returns the String value of this mutable.