Last change
on this file since 193 was
193,
checked in by Maciej Komosinski, 10 years ago
|
Set svn:eol-style native for all textual files
|
-
Property svn:eol-style set to
native
|
File size:
727 bytes
|
Line | |
---|
1 | package com.framsticks.test.prime; |
---|
2 | |
---|
3 | import com.framsticks.params.annotations.FramsClassAnnotation; |
---|
4 | import com.framsticks.params.annotations.ParamAnnotation; |
---|
5 | |
---|
6 | @FramsClassAnnotation |
---|
7 | public class ExpParams { |
---|
8 | |
---|
9 | @ParamAnnotation |
---|
10 | public int from_number; |
---|
11 | |
---|
12 | @ParamAnnotation |
---|
13 | public int to_number; |
---|
14 | |
---|
15 | /** |
---|
16 | * |
---|
17 | */ |
---|
18 | public ExpParams() { |
---|
19 | } |
---|
20 | |
---|
21 | /** |
---|
22 | * @param from_number |
---|
23 | * @param to_number |
---|
24 | */ |
---|
25 | public ExpParams(int from_number, int to_number) { |
---|
26 | this.from_number = from_number; |
---|
27 | this.to_number = to_number; |
---|
28 | } |
---|
29 | |
---|
30 | @Override |
---|
31 | public String toString() { |
---|
32 | return "[" + from_number + ":" + to_number + "]"; |
---|
33 | } |
---|
34 | |
---|
35 | public boolean isInsideOf(ExpParams outer) { |
---|
36 | return from_number >= outer.from_number && to_number <= outer.to_number; |
---|
37 | } |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.