KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > math > INumber


1 /*
2  * INumber.java
3  *
4  * Created on April 18, 2005, 10:59 PM
5  *
6  * To change this template, choose Tools | Options and locate the template under
7  * the Source Creation and Management node. Right-click the template and choose
8  * Open. You can then make changes to the template in the Source Editor.
9  */

10
11 package math;
12
13 /**
14  *
15  * @author jungi
16  */

17 public interface INumber {
18     
19     INumber abs();
20     
21     INumber add(INumber no);
22     
23     INumber divide(INumber no);
24     
25     boolean isDecimal();
26     
27     boolean isReal();
28     
29     INumber max(INumber no);
30     
31     INumber min(INumber no);
32     
33     INumber multiply(INumber no);
34     
35     INumber negate();
36     
37     INumber subtract(INumber no);
38 }
39
Popular Tags