Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## utilities
Interface Computable

All Known Subinterfaces:
  Operable

public abstract interface Computable

Interface to be implemented by all classes that permit the standard arithmetic operations.

Method Summary
`java.lang.Object` | `add(java.lang.Object x)`
`java.lang.Object` | `decrement(java.lang.Object x)`
`java.lang.Object` | `divide(java.lang.Object x)`
`java.lang.Object` | `identity()`
`java.lang.Object` | `increment(java.lang.Object x)`
`java.lang.Object` | `mod(java.lang.Object x)`
`java.lang.Object` | `multiply(java.lang.Object x)`
`java.lang.Object` | `subtract(java.lang.Object x)`
`java.lang.Object` | `zero()`

Method Detail

### add

    public java.lang.Object add(java.lang.Object x)

  Returns:
    this + x

### subtract

    public java.lang.Object subtract(java.lang.Object x)

  Returns:
    this - x

### multiply

    public java.lang.Object multiply(java.lang.Object x)

  Returns:
    this * x

### divide

    public java.lang.Object divide(java.lang.Object x)

  Returns:
    quotient of this / x

### mod

    public java.lang.Object mod(java.lang.Object x)

  Returns:
    remainder of this / x

### increment

    public java.lang.Object increment(java.lang.Object x)

  Returns:
    this incremented by x

### decrement

    public java.lang.Object decrement(java.lang.Object x)

  Returns:
    this decremented by x

### zero

    public java.lang.Object zero()

  Returns:
    the additive zero element

### identity

    public java.lang.Object identity()

  Returns:
    the multiplicative identity element

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD