Class IntValue
java.lang.Object
net.ssehub.easy.varModel.model.values.Value
net.ssehub.easy.varModel.model.values.BasisDatatypeValue
net.ssehub.easy.varModel.model.values.IntValue
This class holds the value for the integer.
- Author:
- lueder, Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IValueVisitor visitor) Abstract accept method.clone()Clones the this value.booleangetValue()Getter for the value.inthashCode()booleanAbstract Method to check whether a value is configured.voidsetValue(int value) Setter for the value.voidAbstract setValue-method.Methods inherited from class net.ssehub.easy.varModel.model.values.BasisDatatypeValue
equalsPartiallyMethods inherited from class net.ssehub.easy.varModel.model.values.Value
equals, equalsPartially, getContainedType, getType, getValueParent, setValueParent, stringValueOf, toString
-
Field Details
-
value
-
-
Constructor Details
-
IntValue
Constructor.- Parameters:
value- Value of the datatype- Throws:
ValueDoesNotMatchTypeException- if the given value does not match this type
-
IntValue
protected IntValue()Argumentless constructor. -
IntValue
Creates a value object from the given value.- Parameters:
value- the value to set
-
-
Method Details
-
setValue
public void setValue(int value) Setter for the value.- Parameters:
value- Value of the datatype
-
getValue
Getter for the value.- Overrides:
getValuein classBasisDatatypeValue- Returns:
- the saved int
-
setValue
Description copied from class:ValueAbstract setValue-method.- Specified by:
setValuein classValue- Parameters:
value- the value to set.- Throws:
ValueDoesNotMatchTypeException- if the given value does not match this type
-
isConfigured
public boolean isConfigured()Description copied from class:ValueAbstract Method to check whether a value is configured.- Specified by:
isConfiguredin classValue- Returns:
- true = it is configured / false = it is not
-
accept
Description copied from class:ValueAbstract accept method. -
clone
Description copied from class:ValueClones the this value. -
hashCode
public int hashCode() -
equals
-