|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
N - Number typepublic interface Arithmetic<N extends Number>

An interface to define requirements for a number to perform arithmetic operations. The Numbers are supposed to remain unchanged by an arithmetic operation.
| Method Summary | |
|---|---|
N |
divided(N number)
Divides this number by the given number. |
N |
minus(N number)
Subtracts the given number from this number. |
N |
plus(N number)
Adds the given number to this number. |
N |
times(N number)
Multiplies this number with the given number. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
N plus(N number)
number - the number to add to this number.
N times(N number)
number - the number to multiply this number with
N minus(N number)
number - the number to subtract from this number
N divided(N number)
number - the number to divide this number by
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||