Package htsjdk.samtools.cram.common
Class MutableInt
- java.lang.Object
-
- htsjdk.samtools.cram.common.MutableInt
-
public final class MutableInt extends Object
Mutable integer class suitable for use with collection classes that take a type parameter.
-
-
Field Summary
Fields Modifier and Type Field Description int
value
-
Constructor Summary
Constructors Constructor Description MutableInt()
Create a mutable integer with initial value 0.MutableInt(int initialValue)
Create a mutable integer with initial valueinitialValue
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
MutableInt
incrementValue(int increment)
Increment the current value byinitialValue
.
-
-
-
Method Detail
-
incrementValue
public MutableInt incrementValue(int increment)
Increment the current value byinitialValue
.- Parameters:
increment
-- Returns:
- The updated object
-
-