N
- Number typepublic interface Arithmetic<N extends Number> extends Comparable<N>
Modifier and Type | Method and Description |
---|---|
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.
|
compareTo
N plus(N number)
number
- the number to add to this number.N times(N number)
number
- the number to multiply this number withN minus(N number)
number
- the number to subtract from this number