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:
587 bytes
|
Rev | Line | |
---|
[84] | 1 | package com.framsticks.params; |
---|
| 2 | |
---|
[87] | 3 | import javax.annotation.concurrent.Immutable; |
---|
| 4 | |
---|
[84] | 5 | /** |
---|
| 6 | * @author Piotr Sniegowski |
---|
| 7 | */ |
---|
[87] | 8 | @Immutable |
---|
[84] | 9 | public abstract class ValueParam extends Param { |
---|
| 10 | |
---|
[87] | 11 | /** |
---|
| 12 | * @param builder |
---|
| 13 | */ |
---|
| 14 | public ValueParam(ParamBuilder builder) { |
---|
| 15 | super(builder); |
---|
| 16 | } |
---|
| 17 | |
---|
[84] | 18 | public ReassignResult<?> reassign(Object newValue, Object oldValue) throws CastFailure { |
---|
| 19 | throw new CastFailure(); |
---|
| 20 | } |
---|
| 21 | |
---|
[87] | 22 | public abstract <T> T getDef(Class<T> type); |
---|
[84] | 23 | |
---|
[105] | 24 | public abstract Class<?> getStorageType(); |
---|
| 25 | |
---|
| 26 | public boolean isNumeric() { |
---|
| 27 | return false; |
---|
| 28 | } |
---|
| 29 | |
---|
[107] | 30 | // public abstract <T> String serialize(T value); |
---|
[105] | 31 | |
---|
[84] | 32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.