Constructor and 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 and 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()
Constant
getContentClass
in interface Constant
public java.lang.Object getValue()
Constant
Constant.getContentClass()
(or null).Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.