forked from sghr/iGeo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIIntegerI.java
92 lines (67 loc) · 2.26 KB
/
IIntegerI.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*---
iGeo - http://igeo.jp
Copyright (c) 2002-2013 Satoru Sugihara
This file is part of iGeo.
iGeo is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, version 3.
iGeo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with iGeo. If not, see <http://www.gnu.org/licenses/>.
---*/
package igeo;
/**
Interface of integer to be used as IParameterObject.
@author Satoru Sugihara
*/
public interface IIntegerI extends IIntegerOp{
/**
@return Primitive value.
*/
public int x();
/**
@return Fixed value but in wrapper class.
*/
public IInteger get();
/**
@return Generic parameter of the value (either of entity class or reference class).
*/
public IIntegerI getX();
/**
@return Duplicated instance.
*/
public IIntegerI dup();
/** alias of dup() */
public IIntegerI cp();
/** duplicate and add */
public IIntegerI cp(int v);
/** duplicate and add */
public IIntegerI cp(IIntegerI v);
/**
convert reference tree to one constant value
*/
//public IIntegerI const();
public IIntegerI set(IIntegerI v);
public IIntegerI set(int v);
public IIntegerI set(double v);
public IIntegerI set(IDoubleI v);
public IIntegerI add(IIntegerI v);
public IIntegerI add(int v);
public IIntegerI sub(IIntegerI v);
public IIntegerI sub(int v);
public IIntegerI mul(IIntegerI v);
public IIntegerI mul(int v);
public IIntegerI div(IIntegerI v);
public IIntegerI div(int v);
public IIntegerI neg();
public IIntegerI mod(IIntegerI v);
public IIntegerI mod(int v);
public boolean eq(int v);
public boolean eq(IIntegerI v);
//public IBoolI eqR(IIntegerI v);
public boolean eq(ISwitchE e, IIntegerI v);
public IBoolI eq(ISwitchR r, IIntegerI v);
}