public List<ValidationMessage> invalidMessagesFor(T object) { List<ValidationMessage> invalidMessages = new ArrayList<ValidationMessage>(); for (InvalidValue invalidValue : this.invalidValues) { invalidMessages.add(messageProducer.getMessage(invalidValue)); } return invalidMessages; }
private List<ValidationMessage> generateValidationMessages(List<InvalidValue> invalidValues) { List<ValidationMessage> messages = new ArrayList<ValidationMessage>(); for (InvalidValue invalidValue : invalidValues) { ValidationMessage message = messageProducer.getMessage(invalidValue); messages.add(message); } return messages; }