Skip to content
Snippets Groups Projects
Commit 09c95ece authored by dgelessus's avatar dgelessus
Browse files

Make parameter classes less generic and add factory methods

There are now only three specific parameter classes: RequiredSingle,
OptionalSingle, and Multiple, corresponding to the three possible value
types (String, Optional<String>, and List<String>). Parameter objects
are no longer created directly via constructors, but using factory
methods. This is shorter and decouples the parameter creation from
their implementation.

There is also a new Parameter.body factory method to create body
parameters, which previously used the same class/constructor as
required remainder parameters.

The PositionalParameter namespace class is now completely removed; all
parameter-related classes and methods are now under the Parameter
class.
parent d0ba9604
No related branches found
No related tags found
No related merge requests found
Showing
with 102 additions and 99 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment