public class IntegerDt extends BasePrimitive<Integer> implements IBaseIntegerDatatype
Constructor and Description |
---|
IntegerDt()
Constructor
|
IntegerDt(int theInteger)
Constructor
|
IntegerDt(String theIntegerAsString)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected String |
encode(Integer theValue)
Subclasses must override to convert a "coerced" value into an encoded one.
|
protected Integer |
parse(String theValue)
Subclasses must override to convert an encoded representation of this datatype into a "coerced" one
|
equals, getValue, getValueAsString, hashCode, isEmpty, readExternal, setValue, setValueAsString, toString, updateStringValue, writeExternal
getElementSpecificId, getId, setElementSpecificId, setId, setId
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, hasFormatComment, isBaseEmpty
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getValue, getValueAsString, setValue, setValueAsString
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment, isEmpty
public IntegerDt()
public IntegerDt(int theInteger)
public IntegerDt(String theIntegerAsString)
theIntegerAsString
- A string representation of an integerDataFormatException
- If the string is not a valid integer representationprotected Integer parse(String theValue)
BasePrimitive
parse
in class BasePrimitive<Integer>
theValue
- Will not be nullprotected String encode(Integer theValue)
BasePrimitive
encode
in class BasePrimitive<Integer>
theValue
- Will not be nullCopyright © 2014–2019 University Health Network. All rights reserved.