varargs custom functions
Brought to you by:
barrygently
For formatting (concat) different properties in a query we created a new custom function like:
public String format(String format, Object... args) {
StringBuilder sb = new StringBuilder();
Formatter formatter = new Formatter(sb);
formatter.format(format, args);
return sb.toString();
}
The class was registered by the Query instance but the method was not found. I guess because of the varargs in the method signature.
It would be a nice and very useful feature to have it in JoSQL.