@Test public void isDecimal() { assertTrue("is not proper decimal", cfg.isDecimal(DOUBLE, MANDATORY)); assertTrue("is not proper decimal", cfg.isDecimal(DOUBLE, MANDATORY, 0.0)); assertTrue("is not proper decimal", cfg.isDecimal(DOUBLE, MANDATORY, 0.0, 1.0)); assertTrue("is not proper decimal", cfg.isDecimal(DOUBLE, MANDATORY, 0.5, 0.6)); assertTrue("is not proper decimal", cfg.isDecimal(DOUBLE, MANDATORY, 0.4, 0.5)); assertTrue("is not in range", expectInvalidField(() -> cfg.isDecimal(DOUBLE, MANDATORY, 0.6, 1.0))); assertTrue("is not in range", expectInvalidField(() -> cfg.isDecimal(DOUBLE, MANDATORY, 0.3, 0.4))); assertTrue("is not proper decimal", cfg.isDecimal(DOUBLE, OPTIONAL, 0.0, 1.0)); assertTrue("is not proper decimal", cfg.isDecimal(DOUBLE, OPTIONAL)); assertTrue("is not proper decimal", cfg.isDecimal("none", OPTIONAL)); assertTrue("did not detect missing field", expectInvalidField(() -> cfg.isDecimal("none", MANDATORY))); }
protected boolean isDecimal(String field, FieldPresence presence, double... minMax) { return isDecimal(object, field, presence, minMax); }
Config { protected boolean isDecimal(String field, FieldPresence presence, double... minMax) { return isDecimal(object, field, presence, minMax); } }
Config { protected boolean isDecimal(String field, FieldPresence presence, double... minMax) { return isDecimal(object, field, presence, minMax); }  }
Config { protected boolean isDecimal(String field, FieldPresence presence, double... minMax) { return isDecimal(object, field, presence, minMax); }  final void init(S subject, String key, JsonNode node, ObjectMapper mapper,
                     ConfigApplyDelegate delegate); boolean isValid(); S subject(); String key(); JsonNode node(); void apply(); }
Config { protected boolean isDecimal(String field, FieldPresence presence, double... minMax) { return isDecimal(object, field, presence, minMax); }  final void init(S subject, String key, JsonNode node, ObjectMapper mapper,
                     ConfigApplyDelegate delegate); boolean isValid(); S subject(); String key(); JsonNode node(); void apply();  }