Package org.apache.commons.cli
Class DeprecatedAttributes.Builder
java.lang.Object
org.apache.commons.cli.DeprecatedAttributes.Builder
- All Implemented Interfaces:
Supplier<DeprecatedAttributes>
- Enclosing class:
- DeprecatedAttributes
public static class DeprecatedAttributes.Builder
extends Object
implements Supplier<DeprecatedAttributes>
Builds
DeprecatedAttributes
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget()
setDescription
(String description) Sets the description.setForRemoval
(boolean forRemoval) Whether this option is subject to removal in a future version.Sets the version in which the option became deprecated.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
get
- Specified by:
get
in interfaceSupplier<DeprecatedAttributes>
-
setDescription
Sets the description.- Parameters:
description
- the description.- Returns:
this
instance.
-
setForRemoval
Whether this option is subject to removal in a future version.- Parameters:
forRemoval
- whether this is subject to removal in a future version.- Returns:
this
instance.- See Also:
-
setSince
Sets the version in which the option became deprecated.- Parameters:
since
- the version in which the option became deprecated.- Returns:
this
instance.
-