Interface JSInteger

  • All Superinterfaces:
    JSValue
    All Known Implementing Classes:
    JSIntegerImpl

    public interface JSInteger
    extends JSValue
    User: mike Date: 10/28/19 Time: 12:09
    • Method Detail

      • get

        int get()
      • compare

        int compare​(int that)
        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))
        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

        int compare​(JSInteger that)
        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))
        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