public class recid extends integer
integer
except default format.NumberType.FormatSpec
BaseDataType.Type, BaseDataType.WrapperHandler
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
defFmt
Default format string for this data type.
|
SECS_IN_A_DAY, SECS_IN_A_MIN, SECS_IN_AN_HOUR
FORMAT_DEC_SEP, FORMAT_GROUP_SEP, SIGN_CR, SIGN_DB, SIGN_DR, SIGN_LEFT_MINUS, SIGN_LEFT_PLUS, SIGN_NONE, SIGN_PAREN, SIGN_PAREN_EMBED, SIGN_RIGHT_MINUS, SIGN_RIGHT_PLUS
Constructor and Description |
---|
recid()
Default constructor which creates an instance representing the
unknown value . |
recid(BaseDataType value)
This is a special c'tor which should be used only when converting the
value returned by a function or method with polymorphic return type into the
expected type (i.e.
|
recid(integer value)
Constructs an instance after casting the parameter into the internal
representation of this class.
|
recid(long value)
Constructs an instance after casting the parameter into the internal
representation of this class.
|
recid(recid value)
Constructs an instance after copying the parameter's data into the
internal representation of this class.
|
recid(java.lang.String value)
Constructs an instance after converting the string representation
of a number into an integer.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildDefaultFormat()
Dynamically builds the default format string for this given data type.
|
BaseDataType |
duplicate()
Does the same as standard
clone() method but returns an instance of
BaseDataType and doesn't throw the CloneNotSupportedException . |
BaseDataType.Type |
getType()
Get the type
|
BaseDataType |
instantiateDefault()
Creates a new instance of the same type that represents the default initialized value.
|
protected BaseDataType |
instantiateDefaultExtent()
Get the default initialization for an extent variable of this type.
|
BaseDataType |
instantiateUnknown()
Creates a new instance of
recid type that represents the unknown value . |
java.lang.String |
obtainDefaultFormat()
Returns the default format string for this given data type.
|
assign, assign, checkBounds, hashCode, readExternal, writeExternal
assign, assign, assign, buildExportFormat, compareTo, decrement, doubleValue, equals, getBitsWorker, getSize, getValue, increment, intValue, isIncompatibleTypesOnConversion, isUnknown, longValue, maximum, maximum, minimum, minimum, setBitsWorker, setUnknown, setValue, setValue, setValue, setValue, setValue, toBigDecimal, toJavaIntegerType, toJavaLongType, toString, toString, toStringExport, toStringMessage
assign, defaultFormatString, genCannotBeDisplayed, generateSimpleFormat, getBits, getBits, getBits, getBits, getDecimalSeparator, getDecimalSeparatorIndex, getDefaultFormat, getDigitsLeft, getDigitsRight, getEmbedIndex, getExportFormat, getGroupSeparator, getNumericDecimalPoint, getNumericFormat, getNumericSeparator, getNumGroupSeparators, getUserLeft, getUserRight, getValueTextLength, overrideDefaultSeparators, parseDecimal, parseDecimal, parseDecimal, parseDecimal, parseDecimal, parseDouble, parseDouble, parseDoubleTest, parseFormat, setBits, setBits, setBits, setBits, setBits, setBits, setBits, setNumericFormat, setNumericFormat, setNumericFormat, setNumericFormat, setNumericFormat, setNumericFormat, setNumericFormat, subscript, toString, toString
assign, assign, calcFormatLength, createProxy, createProxy, deepCopy, elementsOfType, fallback, formatLength, fromTypeName, generateDefault, generateUnknown, getAssigner, getTypeName, incompatibleTypesOnConversion, initialize, initializeDefaultExtent, invalidInitializer, isAllKnown, isAllKnown, isAssignDirect, isProxy, isUnknownValue, maximum, minimum, notUnknownValue, sameType, val, variable
changed, checkUndoable, checkUndoable, checkUndoable, getTransLevel, isGlobal, isUndoable, markUndoable, popBlock, rollback, setGlobal
private static java.lang.String defFmt
public recid()
unknown value
.public recid(BaseDataType value)
int64.assign(BaseDataType)
).value
- The value to be used for this instance.public recid(long value)
Integer.MAX_VALUE
or smaller than
Integer.MIN_VALUE
then some loss of magnitude will
occur (the resulting value will be set to the maximum or minimum
value respectively).
It is not possible to yield an unknown value
from this
constructor without calling the method int64.setUnknown()
separate.
value
- The value to be used for this instance.public recid(integer value)
Integer.MAX_VALUE
or smaller than
Integer.MIN_VALUE
then some loss of magnitude will
occur (the resulting value will be set to the maximum or minimum
value respectively).
If the parameter's represents the unknown value
, this
instance will also represent the unknown value
.
value
- The value to be used for this instance.public recid(recid value)
If the parameter's represents the unknown value
, this
instance will also represent the unknown value
.
value
- The value to be used for this instance.public recid(java.lang.String value)
int
, loss of magnitude will
occur.value
- The value to be used for this instance.public BaseDataType.Type getType()
public BaseDataType duplicate()
clone()
method but returns an instance of
BaseDataType
and doesn't throw the CloneNotSupportedException
.public java.lang.String obtainDefaultFormat()
obtainDefaultFormat
in class int64
public java.lang.String buildDefaultFormat()
buildDefaultFormat
in class int64
public BaseDataType instantiateUnknown()
recid
type that represents the unknown value
.instantiateUnknown
in class integer
recid
instance that represents the unknown value
.public BaseDataType instantiateDefault()
instantiateDefault
in class integer
protected BaseDataType instantiateDefaultExtent()
instantiateDefaultExtent
in class integer