java - Form<Void> in Wicket (or usage of the Void type in general) -


came across code in wicket so:

form<?> form = new form<void>("form") 

can explain usage of void type here? first time i've seen type being used actually. used t outside of wicket?

yes, it's used outside of wicket. example, when method takes callable<v> argument, , callable doesn't return anything, use callable<void>. void used indicate parameterized method doesn't return anything.

in particular case, according documentation, it's used indicate form doesn't have model object. valid value of void type null.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -