@Test public void testValidIpAddress() { Assert.assertTrue(validator.isValid("192.168.1.1", context)); }
@Override public boolean isValid(String value, ConstraintValidatorContext context) { if (value == null) { return true; } return validator.isValid(value, context); }
NullableDomainOrIPValidator implements ConstraintValidator<NullableDomainOrIP, String> { @Override public boolean isValid(String value, ConstraintValidatorContext context) { if (value == null) { return true; } return validator.isValid(value, context); } }
NullableDomainOrIPValidator implements ConstraintValidator<NullableDomainOrIP, String> { @Override public boolean isValid(String value, ConstraintValidatorContext context) { if (value == null) { return true; } return validator.isValid(value, context); } @Inject  NullableDomainOrIPValidator(); }
NullableDomainOrIPValidator implements ConstraintValidator<NullableDomainOrIP, String> { @Override public boolean isValid(String value, ConstraintValidatorContext context) { if (value == null) { return true; } return validator.isValid(value, context); } @Inject  NullableDomainOrIPValidator(); @Override void initialize(NullableDomainOrIP constraintAnnotation); @Override boolean isValid(String value, ConstraintValidatorContext context); }
NullableDomainOrIPValidator implements ConstraintValidator<NullableDomainOrIP, String> { @Override public boolean isValid(String value, ConstraintValidatorContext context) { if (value == null) { return true; } return validator.isValid(value, context); } @Inject  NullableDomainOrIPValidator(); @Override void initialize(NullableDomainOrIP constraintAnnotation); @Override boolean isValid(String value, ConstraintValidatorContext context);  }