@Test public void isIpAddress() { assertTrue("is not proper ip", cfg.isIpAddress(IP, MANDATORY)); assertTrue("is not proper ip", cfg.isIpAddress(IP, OPTIONAL)); assertTrue("is not proper ip", cfg.isIpAddress("none", OPTIONAL)); assertTrue("did not detect missing ip", expectInvalidField(() -> cfg.isIpAddress("none", MANDATORY))); assertTrue("did not detect bad ip", expectInvalidField(() -> cfg.isIpAddress(BAD_IP, MANDATORY))); }
protected boolean isIpAddress(String field, FieldPresence presence) { return isIpAddress(object, field, presence); }
Config { protected boolean isIpAddress(String field, FieldPresence presence) { return isIpAddress(object, field, presence); } }
Config { protected boolean isIpAddress(String field, FieldPresence presence) { return isIpAddress(object, field, presence); }  }
Config { protected boolean isIpAddress(String field, FieldPresence presence) { return isIpAddress(object, field, presence); }  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 isIpAddress(String field, FieldPresence presence) { return isIpAddress(object, field, presence); }  final void init(S subject, String key, JsonNode node, ObjectMapper mapper,
                     ConfigApplyDelegate delegate); boolean isValid(); S subject(); String key(); JsonNode node(); void apply();  }