Details
-
Wish
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.0.0-M5
-
None
-
None
Description
We can of course validate using validateNXxx(), but the idea here is to toggle off or on the optionality constraint for N>0 parameters based on earlier parameters,
eg:
public void act(SomeType type, String someParam) { } public boolean optional1Act(SomeType type) { if (type == SomeType.FOO || type == SomeType.BAR) return true; return false; }