
Package ca.uhn.fhir.util
Class DatatypeUtil
java.lang.Object
ca.uhn.fhir.util.DatatypeUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringjoinStringsSpaceSeparated(List<? extends IPrimitiveType<String>> theStrings) Joins a list of strings with a single space (' ') between each stringstatic BooleantoBooleanValue(IPrimitiveType<Boolean> thePrimitiveType) ReturnsIPrimitiveType.getValue()ifthePrimitiveTypeis not null, else returns null.static DatetoDateValue(IPrimitiveType<Date> thePrimitiveType) ReturnsIPrimitiveType.getValue()ifthePrimitiveTypeis not null, else returns null.toStringSet(List<? extends IPrimitiveType<?>> theStringList) Convert a list of FHIR String objects to a set of native java Stringsstatic StringtoStringValue(IPrimitiveType<?> thePrimitiveType) ReturnsIPrimitiveType.getValueAsString()ifthePrimitiveTypeis not null, else returns null.
-
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()ifthePrimitiveTypeis not null, else returns null. -
toBooleanValue
ReturnsIPrimitiveType.getValue()ifthePrimitiveTypeis not null, else returns null. -
toDateValue
ReturnsIPrimitiveType.getValue()ifthePrimitiveTypeis not null, else returns null.
-