Class IntValue


  • public class IntValue
    extends BasisDatatypeValue
    This class holds the value for the integer.
    Author:
    lueder, Holger Eichelberger
    • Field Detail

      • value

        private java.lang.Integer value
    • Constructor Detail

      • IntValue

        protected IntValue()
        Argumentless constructor.
      • IntValue

        protected IntValue​(java.lang.Integer value)
        Creates a value object from the given value.
        Parameters:
        value - the value to set
    • Method Detail

      • setValue

        public void setValue​(int value)
        Setter for the value.
        Parameters:
        value - Value of the datatype
      • getValue

        public java.lang.Integer getValue()
        Getter for the value.
        Overrides:
        getValue in class BasisDatatypeValue
        Returns:
        the saved int
      • isConfigured

        public boolean isConfigured()
        Description copied from class: Value
        Abstract Method to check whether a value is configured.
        Specified by:
        isConfigured in class Value
        Returns:
        true = it is configured / false = it is not
      • accept

        public void accept​(IValueVisitor visitor)
        Description copied from class: Value
        Abstract accept method.
        Specified by:
        accept in class Value
        Parameters:
        visitor - The visitor
      • clone

        public Value clone()
        Description copied from class: Value
        Clones the this value.
        Overrides:
        clone in class Value
        Returns:
        the clone of the value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Value
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class Value