How can this interface be redesigned or wrapped by another interface so it can be applied (many times) but always with different value (not just 100) for the annotation: @MaxLength(X)
public interface FixedString{
String getValue();
void setValue(@NotNull @MaxLength(100) String value);
}
Your suggestions appreciated