@Test public void testToFacetValue() { Duration oneMin = Duration.ofMinutes(1); JavaDurationConverter converter = new JavaDurationConverter(); assertNull(converter.toFacetValue(null)); assertEquals(oneMin, converter.toFacetValue(oneMin.toString())); }
@Override public Object toFacetValue(Object value) { if(value == null) { return null; } return Duration.parse(value.toString()); }
JavaDurationConverter implements Converter { @Override public Object toFacetValue(Object value) { if(value == null) { return null; } return Duration.parse(value.toString()); } }
JavaDurationConverter implements Converter { @Override public Object toFacetValue(Object value) { if(value == null) { return null; } return Duration.parse(value.toString()); }  }
JavaDurationConverter implements Converter { @Override public Object toFacetValue(Object value) { if(value == null) { return null; } return Duration.parse(value.toString()); }  @Override DataType getDataType(); @Override Class<?> getValueType(); @Override Object toColumnValue(Object value); @Override Object toFacetValue(Object value); }
JavaDurationConverter implements Converter { @Override public Object toFacetValue(Object value) { if(value == null) { return null; } return Duration.parse(value.toString()); }  @Override DataType getDataType(); @Override Class<?> getValueType(); @Override Object toColumnValue(Object value); @Override Object toFacetValue(Object value);  }