Last change
on this file 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
|
Rev | Line | |
---|
[102] | 1 | package com.framsticks.test.prime; |
---|
| 2 | |
---|
| 3 | import java.util.ArrayList; |
---|
[107] | 4 | import java.util.Collections; |
---|
[102] | 5 | import java.util.List; |
---|
| 6 | |
---|
| 7 | import com.framsticks.params.annotations.FramsClassAnnotation; |
---|
| 8 | import com.framsticks.params.annotations.ParamAnnotation; |
---|
[107] | 9 | import com.framsticks.params.types.UniversalParam; |
---|
[102] | 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 | |
---|
[107] | 19 | @ParamAnnotation(paramType = UniversalParam.class) |
---|
| 20 | public List<Integer> getResult() { |
---|
| 21 | return Collections.unmodifiableList(resultList); |
---|
[102] | 22 | } |
---|
| 23 | |
---|
[107] | 24 | |
---|
| 25 | @ParamAnnotation(paramType = UniversalParam.class) |
---|
| 26 | public void setResult(List<Integer> list) { |
---|
[102] | 27 | resultList.clear(); |
---|
[107] | 28 | resultList.addAll(list); |
---|
[102] | 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.