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_valuestatic 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 MutableIntegerdecrement()booleanequals(java.lang.Object o)intgetValue()inthashCode()MutableIntegerincrement()voidsetValue(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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-