public abstract class Constant extends Object
| Constructor and Description |
|---|
Constant() |
| Modifier and Type | Method and Description |
|---|---|
abstract Schema.Datatype |
datatype()
Return the Datatype used to represent the value of this Constant
|
abstract String |
description()
Returns a String containing a human readable description of this
Constant
|
abstract char |
getValueAsChar()
Return the value of this Constant as a char if it can be converted
|
abstract Datetime |
getValueAsDate()
Deprecated.
since 3.2.1 Use
getValueAsDatetime() instead |
abstract Datetime |
getValueAsDatetime()
Return the value of this Constant as a Datetime if it can be converted
|
abstract float |
getValueAsFloat32()
Return the value of this Constant as a Float32 if it can be converted
|
abstract double |
getValueAsFloat64()
Return the value of this Constant as a Float64 if it can be converted
|
abstract int |
getValueAsInt32()
Return the value of this Constant as an Int32 if it can be converted
|
abstract long |
getValueAsInt64()
Return the value of this Constant as an Int64 if it can be converted
|
abstract String |
getValueAsString()
Return the value of this Constant as a String if it can be converted
|
abstract Datetime |
getValueAsTime()
Deprecated.
since 3.2.1 Use
getValueAsDatetime() instead |
abstract Name |
name()
Returns the symbolic name of the constant
|
abstract void |
setUserData(Object userData)
Set the user data associated with this Constant to the specified
userData.
|
abstract Schema.Status |
status()
Returns the status of this Constant
|
abstract Object |
userData()
Returns the user data associated with this Constant.
|
public abstract void setUserData(Object userData)
userData - user provided data that is to be associated with this
ConstantsListpublic abstract Name name()
public abstract String description()
public abstract Schema.Status status()
Schema.Statuspublic abstract Schema.Datatype datatype()
public abstract char getValueAsChar()
InvalidConversionException - if the value of this Constant cannot
be converted to a charpublic abstract int getValueAsInt32()
InvalidConversionException - if the value of this Constant cannot
be converted to an Int32public abstract long getValueAsInt64()
InvalidConversionException - if the value of this Constant cannot
be converted to an Int64public abstract float getValueAsFloat32()
InvalidConversionException - if the value of this Constant cannot
be converted to a Float32public abstract double getValueAsFloat64()
InvalidConversionException - if the value of this Constant cannot
be converted to a Float64public abstract String getValueAsString()
InvalidConversionException - if the value of this Constant cannot
be converted to a Stringpublic abstract Datetime getValueAsDatetime()
InvalidConversionException - if the value of this Constant cannot
be converted to a Datetime@Deprecated public abstract Datetime getValueAsDate()
getValueAsDatetime() instead@Deprecated public abstract Datetime getValueAsTime()
getValueAsDatetime() insteadpublic abstract Object userData()
setUserData(Object) has never been called for this Constant
then return nullCopyright © 2021 Bloomberg L.P.. All rights reserved.