mirror of
https://github.com/DanilaFe/abacus
synced 2024-12-22 07:20:09 -08:00
Add Number interface.
This commit is contained in:
parent
8fcf8c747d
commit
239ab7b73f
22
src/org/nwapw/abacus/number/Number.java
Normal file → Executable file
22
src/org/nwapw/abacus/number/Number.java
Normal file → Executable file
|
@ -1,11 +1,11 @@
|
||||||
package org.nwapw.abacus.number;
|
package org.nwapw.abacus.number;
|
||||||
|
|
||||||
public interface Number {
|
public interface Number {
|
||||||
|
|
||||||
Number multiply(Number multiplier);
|
Number multiply(Number multiplier);
|
||||||
Number divide(Number divisor);
|
Number divide(Number divisor);
|
||||||
Number add(Number summand);
|
Number add(Number summand);
|
||||||
Number subtract(Number subtrahend);
|
Number subtract(Number subtrahend);
|
||||||
Number negate();
|
Number negate();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user