org.codehaus.groovy.runtime.typehandling

## Class IntegerMath

- java.lang.Object
- - org.codehaus.groovy.runtime.typehandling.NumberMath
  - - org.codehaus.groovy.runtime.typehandling.IntegerMath

-     public final class IntegerMath
      extends NumberMath

  Integer NumberMath operations

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static IntegerMath` | `INSTANCE`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected java.lang.Number` | `absImpl(java.lang.Number number)`
    `java.lang.Number` | `addImpl(java.lang.Number left, java.lang.Number right)`
    `protected java.lang.Number` | `andImpl(java.lang.Number left, java.lang.Number right)`
    `protected java.lang.Number` | `bitwiseNegateImpl(java.lang.Number left)`
    `int` | `compareToImpl(java.lang.Number left, java.lang.Number right)`
    `java.lang.Number` | `divideImpl(java.lang.Number left, java.lang.Number right)`
    `protected java.lang.Number` | `intdivImpl(java.lang.Number left, java.lang.Number right)`
    `protected java.lang.Number` | `leftShiftImpl(java.lang.Number left, java.lang.Number right)`
    `protected java.lang.Number` | `modImpl(java.lang.Number left, java.lang.Number right)`
    `java.lang.Number` | `multiplyImpl(java.lang.Number left, java.lang.Number right)`
    `protected java.lang.Number` | `orImpl(java.lang.Number left, java.lang.Number right)`
    `protected java.lang.Number` | `rightShiftImpl(java.lang.Number left, java.lang.Number right)`
    `protected java.lang.Number` | `rightShiftUnsignedImpl(java.lang.Number left, java.lang.Number right)`
    `java.lang.Number` | `subtractImpl(java.lang.Number left, java.lang.Number right)`
    `protected java.lang.Number` | `unaryMinusImpl(java.lang.Number left)`
    `protected java.lang.Number` | `xorImpl(java.lang.Number left, java.lang.Number right)`

    - ### Methods inherited from class org.codehaus.groovy.runtime.typehandling.NumberMath

      `abs, add, and, compareTo, createUnsupportedException, divide, getMath, intdiv, isBigDecimal, isBigInteger, isFloatingPoint, isInteger, isLong, leftShift, mod, multiply, or, rightShift, rightShiftUnsigned, subtract, toBigDecimal, toBigInteger, unaryMinus, xor`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### INSTANCE

          public static final IntegerMath INSTANCE

  - ### Method Detail

    - #### absImpl

          protected java.lang.Number absImpl(java.lang.Number number)

      Specified by:
        `absImpl` in class `NumberMath`

    - #### addImpl

          public java.lang.Number addImpl(java.lang.Number left,
                                 java.lang.Number right)

      Specified by:
        `addImpl` in class `NumberMath`

    - #### subtractImpl

          public java.lang.Number subtractImpl(java.lang.Number left,
                                      java.lang.Number right)

      Specified by:
        `subtractImpl` in class `NumberMath`

    - #### multiplyImpl

          public java.lang.Number multiplyImpl(java.lang.Number left,
                                      java.lang.Number right)

      Specified by:
        `multiplyImpl` in class `NumberMath`

    - #### divideImpl

          public java.lang.Number divideImpl(java.lang.Number left,
                                    java.lang.Number right)

      Specified by:
        `divideImpl` in class `NumberMath`

    - #### compareToImpl

          public int compareToImpl(java.lang.Number left,
                          java.lang.Number right)

      Specified by:
        `compareToImpl` in class `NumberMath`

    - #### orImpl

          protected java.lang.Number orImpl(java.lang.Number left,
                                java.lang.Number right)

      Overrides:
        `orImpl` in class `NumberMath`

    - #### andImpl

          protected java.lang.Number andImpl(java.lang.Number left,
                                 java.lang.Number right)

      Overrides:
        `andImpl` in class `NumberMath`

    - #### xorImpl

          protected java.lang.Number xorImpl(java.lang.Number left,
                                 java.lang.Number right)

      Overrides:
        `xorImpl` in class `NumberMath`

    - #### intdivImpl

          protected java.lang.Number intdivImpl(java.lang.Number left,
                                    java.lang.Number right)

      Overrides:
        `intdivImpl` in class `NumberMath`

    - #### modImpl

          protected java.lang.Number modImpl(java.lang.Number left,
                                 java.lang.Number right)

      Overrides:
        `modImpl` in class `NumberMath`

    - #### unaryMinusImpl

          protected java.lang.Number unaryMinusImpl(java.lang.Number left)

      Specified by:
        `unaryMinusImpl` in class `NumberMath`

    - #### bitwiseNegateImpl

          protected java.lang.Number bitwiseNegateImpl(java.lang.Number left)

    - #### leftShiftImpl

          protected java.lang.Number leftShiftImpl(java.lang.Number left,
                                       java.lang.Number right)

      Overrides:
        `leftShiftImpl` in class `NumberMath`

    - #### rightShiftImpl

          protected java.lang.Number rightShiftImpl(java.lang.Number left,
                                        java.lang.Number right)

      Overrides:
        `rightShiftImpl` in class `NumberMath`

    - #### rightShiftUnsignedImpl

          protected java.lang.Number rightShiftUnsignedImpl(java.lang.Number left,
                                                java.lang.Number right)

      Overrides:
        `rightShiftUnsignedImpl` in class `NumberMath`