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

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -