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:
940 bytes
|
Line | |
---|
1 | package com.framsticks.test.prime; |
---|
2 | |
---|
3 | import java.util.ArrayList; |
---|
4 | import java.util.Collections; |
---|
5 | import java.util.List; |
---|
6 | |
---|
7 | import com.framsticks.params.annotations.FramsClassAnnotation; |
---|
8 | import com.framsticks.params.annotations.ParamAnnotation; |
---|
9 | import com.framsticks.params.types.UniversalParam; |
---|
10 | |
---|
11 | @FramsClassAnnotation |
---|
12 | public class ExpState { |
---|
13 | |
---|
14 | @ParamAnnotation |
---|
15 | public int current_number; |
---|
16 | |
---|
17 | protected final List<Integer> resultList = new ArrayList<>(); |
---|
18 | |
---|
19 | @ParamAnnotation(paramType = UniversalParam.class) |
---|
20 | public List<Integer> getResult() { |
---|
21 | return Collections.unmodifiableList(resultList); |
---|
22 | } |
---|
23 | |
---|
24 | |
---|
25 | @ParamAnnotation(paramType = UniversalParam.class) |
---|
26 | public void setResult(List<Integer> list) { |
---|
27 | resultList.clear(); |
---|
28 | resultList.addAll(list); |
---|
29 | } |
---|
30 | |
---|
31 | /** |
---|
32 | * @return the resultList |
---|
33 | */ |
---|
34 | public List<Integer> getResultList() { |
---|
35 | return resultList; |
---|
36 | } |
---|
37 | |
---|
38 | @Override |
---|
39 | public String toString() { |
---|
40 | return "(" + current_number + "):" + resultList; |
---|
41 | } |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.