Class JSIntegerImpl

    • Constructor Detail

      • JSIntegerImpl

        public JSIntegerImpl​(int value)
      • JSIntegerImpl

        public JSIntegerImpl​(String typeName,
                             com.fasterxml.jackson.databind.JsonNode node)
    • Method Detail

      • get

        public int get()
        Specified by:
        get in interface JSInteger
      • compare

        public int compare​(int that)
        Description copied from interface: JSInteger
        Compares with an int value numerically. The value returned is identical to what would be returned by: Integer.valueOf(this.value).compareTo(Integer.valueOf(that))
        Specified by:
        compare in interface JSInteger
        Parameters:
        that - the int to compare
        Returns:
        the value 0 if this == that; a value less than 0 if this < that; and a value greater than 0 if this > that
      • compare

        public int compare​(JSInteger that)
        Description copied from interface: JSInteger
        Compares with an int value numerically. The value returned is identical to what would be returned by: Integer.valueOf(this.value).compareTo(Integer.valueOf(that))
        Specified by:
        compare in interface JSInteger
        Parameters:
        that - the int to compare
        Returns:
        the value 0 if this == that; a value less than 0 if this < that; and a value greater than 0 if this > that