Last change
on this file was 127, checked in by Wouter Pasman, 6 years ago |
#41 ROLL BACK of rev.126 . So this version is equal to rev. 125
|
File size:
956 bytes
|
Line | |
---|
1 | package genius.core.utility;
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * An interval of integers, bound to a specific integer issue.
|
---|
5 | */
|
---|
6 | public class Bound
|
---|
7 | {
|
---|
8 | private int issueIndex;
|
---|
9 | private int min;
|
---|
10 | private int max;
|
---|
11 | //the type of min and max can be updated to real for real-issue values
|
---|
12 |
|
---|
13 | public Bound(int issueIndex, int min, int max)
|
---|
14 | {
|
---|
15 | this.setIssueIndex(issueIndex);
|
---|
16 | this.setMin(min);
|
---|
17 | this.setMax(max);
|
---|
18 | }
|
---|
19 |
|
---|
20 | public Bound(String issueIndex, String min, String max) {
|
---|
21 | this.setIssueIndex(Integer.parseInt(issueIndex));
|
---|
22 | this.setMin(Integer.parseInt(min));
|
---|
23 | this.setMax(Integer.parseInt(max));
|
---|
24 | }
|
---|
25 |
|
---|
26 | public int getIssueIndex() {
|
---|
27 | return issueIndex;
|
---|
28 | }
|
---|
29 |
|
---|
30 | private void setIssueIndex(int issueIndex) {
|
---|
31 | this.issueIndex = issueIndex;
|
---|
32 | }
|
---|
33 |
|
---|
34 | public int getMin() {
|
---|
35 | return min;
|
---|
36 | }
|
---|
37 | private void setMin(int min) {
|
---|
38 | this.min = min;
|
---|
39 | }
|
---|
40 | public int getMax() {
|
---|
41 | return max;
|
---|
42 | }
|
---|
43 | private void setMax(int max) {
|
---|
44 | this.max = max;
|
---|
45 | }
|
---|
46 |
|
---|
47 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.