Skip to content

Commit 4a9c006

Browse files
committed
Javadoc
1 parent accd727 commit 4a9c006

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

src/main/java/org/apache/commons/cli/OptionGroup.java

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class OptionGroup implements Serializable {
4141
private boolean required;
4242

4343
/**
44-
* Add the specified {@code Option} to this group.
44+
* Adds the given {@code Option} to this group.
4545
*
4646
* @param option the option to add to this group
4747
* @return this option group with the option added
@@ -54,23 +54,29 @@ public OptionGroup addOption(final Option option) {
5454
}
5555

5656
/**
57-
* @return the names of the options in this group as a {@code Collection}
57+
* Gets the names of the options in this group as a {@code Collection}.
58+
*
59+
* @return the names of the options in this group as a {@code Collection}.
5860
*/
5961
public Collection<String> getNames() {
6062
// the key set is the collection of names
6163
return optionMap.keySet();
6264
}
6365

6466
/**
65-
* @return the options in this group as a {@code Collection}
67+
* Gets the options in this group as a {@code Collection}.
68+
*
69+
* @return the options in this group as a {@code Collection}.
6670
*/
6771
public Collection<Option> getOptions() {
6872
// the values are the collection of options
6973
return optionMap.values();
7074
}
7175

7276
/**
73-
* @return the selected option name
77+
* Gets the selected option name.
78+
*
79+
* @return the selected option name.
7480
*/
7581
public String getSelected() {
7682
return selected;
@@ -86,7 +92,9 @@ public boolean isRequired() {
8692
}
8793

8894
/**
89-
* @param required specifies if this group is required
95+
* Sets whether this group is required.
96+
*
97+
* @param required whether this group is required.
9098
*/
9199
public void setRequired(final boolean required) {
92100
this.required = required;

0 commit comments

Comments
 (0)