public class UserConstant<T> extends Object implements uk.ac.starlink.ttools.jel.Constant<T>
Constructor and Description |
---|
UserConstant(Class<T> clazz,
String name,
T value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Class<T> |
getContentClass()
Returns the value type for this constant.
|
String |
getName()
Returns the name of this constant.
|
T |
getValue()
Returns the value of this constant.
|
boolean |
requiresRowIndex() |
void |
setValue(T value)
Sets the value of this constant.
|
String |
toString() |
public Class<T> getContentClass()
getContentClass
in interface uk.ac.starlink.ttools.jel.Constant<T>
public String getName()
public void setValue(T value)
value
- new valuepublic T getValue()
getValue
in interface uk.ac.starlink.ttools.jel.Constant<T>
public boolean requiresRowIndex()
requiresRowIndex
in interface uk.ac.starlink.ttools.jel.Constant<T>
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.