I have a collection of strings, now I want to make sure that not only the collection is not empty but also each string in that collection does not contain a blank input.
@NotEmpty
public List<String> getDescriptions() // not empty collection
@NotEmpty @NotBlank
public List<String> getDescriptions() // NotBlank isn't applicable on collections
Is there a way other then to wrap the string into a class or create a custom @NotBlankCollectionEntries?