source: java/main/src/main/java/com/framsticks/params/types/ColorParam.java @ 193

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: 746 bytes
Line 
1package com.framsticks.params.types;
2
3import com.framsticks.params.CastFailure;
4import com.framsticks.params.ParamBuilder;
5import com.framsticks.params.PrimitiveParam;
6import com.framsticks.params.ReassignResult;
7
8import javax.annotation.concurrent.Immutable;
9
10/**
11 * @author Piotr Sniegowski
12 */
13@Immutable
14public class ColorParam extends PrimitiveParam<Object> {
15
16
17
18        /**
19         * @param builder
20         */
21        public ColorParam(ParamBuilder builder) {
22                super(builder);
23        }
24
25        @Override
26        public Class<?> getStorageType() {
27                return Object.class;
28        }
29
30        @Override
31        public String getFramsTypeName() {
32                return "dc";
33        }
34
35        public ReassignResult<Object> reassign(Object newValue, Object oldValue) throws CastFailure {
36                return ReassignResult.create(newValue);
37        }
38
39
40}
Note: See TracBrowser for help on using the repository browser.