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

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

Introduction

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

The text is from its open source code.

Constructor

MutableInt(final int value)
Constructs a new MutableInt with the specified value.
MutableInt(final Number value)
Constructs a new MutableInt with the specified value.
MutableInt(final String value)
Constructs a new MutableInt parsing the given string.
MutableInt()
Constructs a new MutableInt with the default value of zero.

Method

voidadd(final int operand)
Adds a value to the value of this instance.
voidadd(final Number operand)
Adds a value to the value of this instance.
intcompareTo(final MutableInt other)
Compares this mutable to another in ascending order.
voiddecrement()
Decrements the value.
IntegergetValue()
Gets the value as a Integer instance.
voidincrement()
Increments the value.
intintValue()
Returns the value of this MutableInt as an int.
longlongValue()
Returns the value of this MutableInt as a long.
voidsetValue(final int value)
Sets the value.
voidsetValue(final Number value)
Sets the value from any Number instance.
shortshortValue()
Returns the value of the specified number as a short .
voidsubtract(final int operand)
Subtracts a value from the value of this instance.
voidsubtract(final Number operand)
Subtracts a value from the value of this instance.
IntegertoInteger()
Gets this mutable as an instance of Integer.
StringtoString()
Returns the String value of this mutable.