Class IntHolder
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.vilTypes.IntHolder
-
public class IntHolder extends java.lang.ObjectRepresents a modifiable int.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private intvalue
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAndDec()Returns the int value decremented by 1.intgetAndInc()Returns the int value incremented by 1.intgetValue()Returns the int value.voidsetValue(int value)Changes the int value.java.lang.StringtoString()
-
-
-
Method Detail
-
setValue
public void setValue(int value)
Changes the int value.- Parameters:
value- the new value
-
getValue
public int getValue()
Returns the int value.- Returns:
- the int value
-
getAndInc
public int getAndInc()
Returns the int value incremented by 1.- Returns:
- the int value
-
getAndDec
public int getAndDec()
Returns the int value decremented by 1.- Returns:
- the int value
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-