B - The builder type.T - The type to build.public abstract static class AbstractHelpFormatter.Builder<B extends AbstractHelpFormatter.Builder<B,T>,T extends AbstractHelpFormatter> extends Object implements Supplier<T>
TextHelpAppendable writing to System.outOptionFormatter.Builder| Modifier | Constructor | Description |
|---|---|---|
protected |
Builder() |
Constructs a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected B |
asThis() |
Returns this instance cast to
B. |
protected Comparator<Option> |
getComparator() |
Gets the comparator to sort lists of options.
|
protected HelpAppendable |
getHelpAppendable() |
Gets
HelpAppendable. |
protected OptionFormatter.Builder |
getOptionFormatBuilder() |
Gets
OptionFormatter.Builder to use to format options in the table. |
protected String |
getOptionGroupSeparator() |
Gets string to separate option groups.
|
B |
setComparator(Comparator<Option> comparator) |
Sets the comparator to use for sorting options.
|
B |
setHelpAppendable(HelpAppendable helpAppendable) |
Sets the
HelpAppendable. |
B |
setOptionFormatBuilder(OptionFormatter.Builder optionFormatBuilder) |
Sets the
OptionFormatter.Builder. |
B |
setOptionGroupSeparator(String optionGroupSeparator) |
Sets the OptionGroup separator.
|
protected Builder()
Sets showSince to true.
protected Comparator<Option> getComparator()
protected HelpAppendable getHelpAppendable()
HelpAppendable.HelpAppendable.protected OptionFormatter.Builder getOptionFormatBuilder()
OptionFormatter.Builder to use to format options in the table.OptionFormatter.Builder to use to format options in the table.protected String getOptionGroupSeparator()
public B setComparator(Comparator<Option> comparator)
null no sorting is performed.comparator - The comparator to use for sorting options.public B setHelpAppendable(HelpAppendable helpAppendable)
HelpAppendable.helpAppendable - the HelpAppendable to use.public B setOptionFormatBuilder(OptionFormatter.Builder optionFormatBuilder)
OptionFormatter.Builder.optionFormatBuilder - the OptionFormatter.Builder to use.public B setOptionGroupSeparator(String optionGroupSeparator)
optionGroupSeparator - the string to separate option group elements with.Copyright © 2002-2025 The Apache Software Foundation. All rights reserved.Apache Commons CLI | Issue management | Source repository