java - Defining required hash values in a javadoc -
let's have java method this:
void configure(map<string, string> values) { assert values.containskey("x"), "missing parameter x" }
is possible specify in javadoc comment "x" required value in values
?
if can change method's signature, , assuming x
mandatory parameter, there other (optional) parameters map
may contain, communicate in signature via
void configure(string xvalue, map<string, string> optionalvalues = [:]) { }
Comments
Post a Comment