- Timestamp:
- 06/28/13 11:56:03 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main/src/main/java/com/framsticks/params/types/EnumParam.java
r84 r87 3 3 import java.util.List; 4 4 5 import com.framsticks.params.ParamBuilder; 6 7 import javax.annotation.concurrent.Immutable; 8 5 9 /** 6 10 * @author Piotr Sniegowski 7 11 */ 12 @Immutable 8 13 public class EnumParam extends DecimalParam { 9 14 10 List<String> enums; 15 16 protected final List<String> enums; 11 17 12 18 /** … … 15 21 * @param enums 16 22 */ 17 public EnumParam(List<String> enums) { 18 assert(enums != null); 19 this.enums = enums; 23 public EnumParam(ParamBuilder builder) { 24 super(builder); 25 this.enums = builder.getEnumValues(); 26 assert(this.enums != null); 20 27 } 21 28
Note: See TracChangeset
for help on using the changeset viewer.