Package org.hl7.fhir.r5.model
Class Integer64Type
- java.lang.Object
-
- org.hl7.fhir.r5.model.Base
-
- org.hl7.fhir.r5.model.Element
-
- org.hl7.fhir.r5.model.DataType
-
- org.hl7.fhir.r5.model.PrimitiveType<Long>
-
- org.hl7.fhir.r5.model.Integer64Type
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Externalizable,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseDatatype,org.hl7.fhir.instance.model.api.IBaseElement,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IPrimitiveType<Long>
public class Integer64Type extends PrimitiveType<Long>
Primitive type "integer64" in FHIR: A signed 64-bit integer- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Integer64Type()ConstructorInteger64Type(long theInteger)ConstructorInteger64Type(Long theValue)ConstructorInteger64Type(String theIntegerAsString)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer64Typecopy()protected Stringencode(Long theValue)Subclasses must override to convert a "coerced" value into an encoded one.StringfhirType()protected Longparse(String theValue)Subclasses must override to convert an encoded representation of this datatype into a "coerced" one-
Methods inherited from class org.hl7.fhir.r5.model.PrimitiveType
asStringValue, equalsDeep, equalsShallow, forceStringValue, fpValue, fromStringValue, getProperty, getTypesForProperty, getValue, getValueAsString, hashCode, hasPrimitiveValue, hasValue, isEmpty, isPrimitive, makeProperty, primitiveValue, readExternal, setProperty, setProperty, setValue, setValueAsString, toString, typedCopy, updateStringValue, writeExternal
-
Methods inherited from class org.hl7.fhir.r5.model.DataType
copyValues
-
Methods inherited from class org.hl7.fhir.r5.model.Element
addChild, addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, getNamedProperty, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, listChildren, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement
-
Methods inherited from class org.hl7.fhir.r5.model.Base
children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyUserData, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getXhtml, hasFormatComment, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isResource, listChildrenByName, listChildrenByName, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
-
-
-
Constructor Detail
-
Integer64Type
public Integer64Type()
Constructor
-
Integer64Type
public Integer64Type(long theInteger)
Constructor
-
Integer64Type
public Integer64Type(String theIntegerAsString)
Constructor- Parameters:
theIntegerAsString- A string representation of an integer- Throws:
IllegalArgumentException- If the string is not a valid integer representation
-
Integer64Type
public Integer64Type(Long theValue)
Constructor- Parameters:
theValue- The value- Throws:
IllegalArgumentException- If the value is too large to fit in a signed integer
-
-
Method Detail
-
parse
protected Long parse(String theValue)
Description copied from class:PrimitiveTypeSubclasses must override to convert an encoded representation of this datatype into a "coerced" one- Specified by:
parsein classPrimitiveType<Long>- Parameters:
theValue- Will not be null- Returns:
- May return null if the value does not correspond to anything
-
encode
protected String encode(Long theValue)
Description copied from class:PrimitiveTypeSubclasses must override to convert a "coerced" value into an encoded one.- Specified by:
encodein classPrimitiveType<Long>- Parameters:
theValue- Will not be null- Returns:
- May return null if the value does not correspond to anything
-
copy
public Integer64Type copy()
- Specified by:
copyin classPrimitiveType<Long>
-
-