How do I pass a List
type value in the constant parameter?
In this case, this parameter is only for the PARS() constant.
public enum ParColumnsEnum {
ID_DIST("codDist"),
PARS("listValue...");
private final String columnName;
ParColumnsEnum(String columnName) {
this.columnName = columnName;
}
public String columnName() {
return columnName;
}
}
Update: I ended up not mentioning it in the post but it's a list of object and not a string.
List<Pares> pares;