@Test public void testParse() throws Exception { final NumberIntervalMapper<Float> mapper = NumberIntervalMapper.of(Float.class); Assert.assertEquals(Intervals.newClosedInterval(1.2f, 12.2f), mapper.parseValue("1.2;12.2")); Assert.assertEquals(Intervals.newPoint(0f), mapper.parseValue("0;0")); }
@Nonnull public static <T extends Number & Comparable<T>> NumberIntervalMapper<T> of(@Nonnull Class<T> clazz) { return new NumberIntervalMapper<T>(clazz); }
NumberIntervalMapper extends AbstractIntervalMapper<T> { @Nonnull public static <T extends Number & Comparable<T>> NumberIntervalMapper<T> of(@Nonnull Class<T> clazz) { return new NumberIntervalMapper<T>(clazz); } }
NumberIntervalMapper extends AbstractIntervalMapper<T> { @Nonnull public static <T extends Number & Comparable<T>> NumberIntervalMapper<T> of(@Nonnull Class<T> clazz) { return new NumberIntervalMapper<T>(clazz); } private  NumberIntervalMapper(@Nonnull Class<T> clazz); private  NumberIntervalMapper(@Nonnull Class<T> clazz, @Nonnull String delimiter); }
NumberIntervalMapper extends AbstractIntervalMapper<T> { @Nonnull public static <T extends Number & Comparable<T>> NumberIntervalMapper<T> of(@Nonnull Class<T> clazz) { return new NumberIntervalMapper<T>(clazz); } private  NumberIntervalMapper(@Nonnull Class<T> clazz); private  NumberIntervalMapper(@Nonnull Class<T> clazz, @Nonnull String delimiter); @Nonnull static NumberIntervalMapper<T> of(@Nonnull Class<T> clazz); @Nonnull static NumberIntervalMapper<T> newInstance(@Nonnull Class<T> clazz, @Nonnull String delimiter); }
NumberIntervalMapper extends AbstractIntervalMapper<T> { @Nonnull public static <T extends Number & Comparable<T>> NumberIntervalMapper<T> of(@Nonnull Class<T> clazz) { return new NumberIntervalMapper<T>(clazz); } private  NumberIntervalMapper(@Nonnull Class<T> clazz); private  NumberIntervalMapper(@Nonnull Class<T> clazz, @Nonnull String delimiter); @Nonnull static NumberIntervalMapper<T> of(@Nonnull Class<T> clazz); @Nonnull static NumberIntervalMapper<T> newInstance(@Nonnull Class<T> clazz, @Nonnull String delimiter);  }