Package ca.uhn.fhir.util
Class DatatypeUtil
java.lang.Object
ca.uhn.fhir.util.DatatypeUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
joinStringsSpaceSeparated
(List<? extends IPrimitiveType<String>> theStrings) Joins a list of strings with a single space (' ') between each stringstatic Boolean
toBooleanValue
(IPrimitiveType<Boolean> thePrimitiveType) ReturnsIPrimitiveType.getValue()
ifthePrimitiveType
is not null, else returns null.toStringSet
(List<? extends IPrimitiveType<?>> theStringList) Convert a list of FHIR String objects to a set of native java Stringsstatic String
toStringValue
(IPrimitiveType<?> thePrimitiveType) ReturnsIPrimitiveType.getValueAsString()
ifthePrimitiveType
is not null, else returns null.
-
Constructor Details
-
DatatypeUtil
public DatatypeUtil()
-
-
Method Details
-
toStringSet
Convert a list of FHIR String objects to a set of native java Strings -
joinStringsSpaceSeparated
Joins a list of strings with a single space (' ') between each string -
toStringValue
ReturnsIPrimitiveType.getValueAsString()
ifthePrimitiveType
is not null, else returns null. -
toBooleanValue
ReturnsIPrimitiveType.getValue()
ifthePrimitiveType
is not null, else returns null.
-