public class GroupBuilder extends java.lang.Object
| Constructor and Description |
|---|
GroupBuilder()
Creates a new GroupBuilder
|
| Modifier and Type | Method and Description |
|---|---|
Group |
create()
Creates a new Group instance
|
GroupBuilder |
reset()
Resets the builder
|
GroupBuilder |
withDescription(java.lang.String newDescription)
Use this option description
|
GroupBuilder |
withMaximum(int newMaximum)
A valid group requires at most this many options present
|
GroupBuilder |
withMinimum(int newMinimum)
A valid group requires at least this many options present
|
GroupBuilder |
withName(java.lang.String newName)
Use this option name
|
GroupBuilder |
withOption(Option option)
Add this option to the group
|
public GroupBuilder()
public GroupBuilder reset()
public GroupBuilder withDescription(java.lang.String newDescription)
newDescription - the description to usepublic GroupBuilder withName(java.lang.String newName)
newName - the name to usepublic GroupBuilder withMinimum(int newMinimum)
newMinimum - the minimum Options requiredpublic GroupBuilder withMaximum(int newMaximum)
newMaximum - the maximum Options allowedpublic GroupBuilder withOption(Option option)
option - the Option to add