Class IntegerConstant


  • public class IntegerConstant
    extends Constant
    This class encapsulates an integer as a term.
    Author:
    Matthias Thimm
    • Constructor Detail

      • IntegerConstant

        public IntegerConstant​(int i)
        Creates a new Integer.
        Parameters:
        i - an int.
    • Method Detail

      • getValue

        public int getValue()
        Get the value of this integer.
        Returns:
        the value of this integer.
      • isInteger

        public boolean isInteger()
        Description copied from class: Term
        Checks whether this term represents an integer value.
        Specified by:
        isInteger in class Term
        Returns:
        "true" iff this term represents an integer value.
      • toString

        public java.lang.String toString()
        Specified by:
        toString in class Term