@Test public void shouldCalculateDurationAgainstDateTimeWithDouble() { Double aDouble = DVUtil.calculateDurationAgainstDvTemporal("365.0,d", new DvDateTime("2016-01-01T12:00:00"), "-"); assertThat(aDouble, equalTo(3.1536E10)); }
static Double calculateDurationAgainstDvTemporal(String value, DvTemporal operationTemporal, String symbol) { DateTime dateTime = getDateTime(operationTemporal, value); return calculateDurationAgainstDateTime(value, dateTime, symbol); }
DVUtil { static Double calculateDurationAgainstDvTemporal(String value, DvTemporal operationTemporal, String symbol) { DateTime dateTime = getDateTime(operationTemporal, value); return calculateDurationAgainstDateTime(value, dateTime, symbol); } }
DVUtil { static Double calculateDurationAgainstDvTemporal(String value, DvTemporal operationTemporal, String symbol) { DateTime dateTime = getDateTime(operationTemporal, value); return calculateDurationAgainstDateTime(value, dateTime, symbol); }  }
DVUtil { static Double calculateDurationAgainstDvTemporal(String value, DvTemporal operationTemporal, String symbol) { DateTime dateTime = getDateTime(operationTemporal, value); return calculateDurationAgainstDateTime(value, dateTime, symbol); }  static DataValue createDV(
            ElementInstance elementInstance, String rmName, String attributeName, Object value); static boolean equalDVs(DataValue dv1, DataValue dv2); static boolean equalDV(boolean inPredicate, ElementInstance ei, DataValue dv2, boolean negated); static boolean nullValueEquals(DvCodedText nullFlavour, Object obj); @Deprecated static boolean isSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap,
            DataValue... dataValues); static boolean isSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap,
            String bindReference, DataValue... dataValues); static boolean isSubClassOf(boolean inPredicate, ElementInstance ei, DataValue... dataValues); static boolean isSubClassOfCached(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap,
            boolean negation, String bindReference, DataValue... dataValues); @Deprecated static boolean isNotSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap, DataValue... dataValues); static boolean isNotSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap, String bindReference, DataValue... dataValues); static boolean isNotSubClassOf(boolean inPredicate, ElementInstance ei, DataValue... dataValues); @SuppressWarnings({"rawtypes", "unchecked"}) static int compareDVs(DataValue dv1, DataValue dv2); static boolean compatibleComparison(DataValue dv1, DataValue dv2); static double round(double unroundedDouble, int precision); static ConstantExpression convertToExpression(DataValue dv); static boolean checkMaxMin(DataValue originalDv, DataValue checkDv, String opSymbol, ArchetypeReference originalAr, ArchetypeReference checkAr); static Double calculateDuration(String value, Object operationValue, String symbol); static Double calculateDuration(String value, String symbol); static Long ucumToMilliseconds(DvQuantity quantity); }
DVUtil { static Double calculateDurationAgainstDvTemporal(String value, DvTemporal operationTemporal, String symbol) { DateTime dateTime = getDateTime(operationTemporal, value); return calculateDurationAgainstDateTime(value, dateTime, symbol); }  static DataValue createDV(
            ElementInstance elementInstance, String rmName, String attributeName, Object value); static boolean equalDVs(DataValue dv1, DataValue dv2); static boolean equalDV(boolean inPredicate, ElementInstance ei, DataValue dv2, boolean negated); static boolean nullValueEquals(DvCodedText nullFlavour, Object obj); @Deprecated static boolean isSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap,
            DataValue... dataValues); static boolean isSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap,
            String bindReference, DataValue... dataValues); static boolean isSubClassOf(boolean inPredicate, ElementInstance ei, DataValue... dataValues); static boolean isSubClassOfCached(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap,
            boolean negation, String bindReference, DataValue... dataValues); @Deprecated static boolean isNotSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap, DataValue... dataValues); static boolean isNotSubClassOf(
            boolean inPredicate, ElementInstance ei, Map<ElementInstance, Map<String, Boolean>> bindingsMap, String bindReference, DataValue... dataValues); static boolean isNotSubClassOf(boolean inPredicate, ElementInstance ei, DataValue... dataValues); @SuppressWarnings({"rawtypes", "unchecked"}) static int compareDVs(DataValue dv1, DataValue dv2); static boolean compatibleComparison(DataValue dv1, DataValue dv2); static double round(double unroundedDouble, int precision); static ConstantExpression convertToExpression(DataValue dv); static boolean checkMaxMin(DataValue originalDv, DataValue checkDv, String opSymbol, ArchetypeReference originalAr, ArchetypeReference checkAr); static Double calculateDuration(String value, Object operationValue, String symbol); static Double calculateDuration(String value, String symbol); static Long ucumToMilliseconds(DvQuantity quantity);  }