Package com.strobel.core
Class MutableInteger
- java.lang.Object
-
- com.strobel.core.MutableInteger
-
public final class MutableInteger extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
_value
static Supplier<MutableInteger>
SUPPLIER
-
Constructor Summary
Constructors Constructor Description MutableInteger()
MutableInteger(int value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableInteger
decrement()
boolean
equals(java.lang.Object o)
int
getValue()
int
hashCode()
MutableInteger
increment()
void
setValue(int value)
-
-
-
Field Detail
-
SUPPLIER
public static final Supplier<MutableInteger> SUPPLIER
-
_value
private int _value
-
-
Method Detail
-
getValue
public int getValue()
-
setValue
public void setValue(int value)
-
increment
public MutableInteger increment()
-
decrement
public MutableInteger decrement()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-