| Constructor | Description |
|---|---|
FixedConstant(java.lang.Object value) |
Constructs a constant with a given value.
|
FixedConstant(java.lang.Object value,
java.lang.Class clazz) |
Constructs a constant with a given value and class.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Class |
getContentClass() |
Returns a class of which this object's value will be an instance.
|
java.lang.Object |
getValue() |
Returns this object's value.
|
public FixedConstant(java.lang.Object value,
java.lang.Class clazz)
clazz - content classvalue - valuepublic FixedConstant(java.lang.Object value)
value.value - valuepublic java.lang.Class getContentClass()
ConstantgetContentClass in interface Constantpublic java.lang.Object getValue()
ConstantConstant.getContentClass() (or null).Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.