Constructor and Description |
---|
FixedConstant(T value,
Class<T> clazz)
Constructs a constant with a given value and class.
|
Modifier and Type | Method and Description |
---|---|
static <T> FixedConstant<T> |
createConstant(T value)
Constructs a constant with a given value.
|
Class<T> |
getContentClass()
Returns a class of which this object's value will be an instance.
|
T |
getValue()
Returns this object's value.
|
boolean |
requiresRowIndex()
Indicates whether evaluation of this constant needs to know the row
index.
|
public Class<T> getContentClass()
Constant
getContentClass
in interface Constant<T>
public T getValue()
Constant
public boolean requiresRowIndex()
Constant
Constant.getValue()
may result in a call to
StarTableJELRowReader.getCurrentRow()
,
this method must return true.requiresRowIndex
in interface Constant<T>
public static <T> FixedConstant<T> createConstant(T value)
value
- constant valueCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.