Package org.apache.commons.cli
Class DeprecatedAttributes
- java.lang.Object
-
- org.apache.commons.cli.DeprecatedAttributes
-
public final class DeprecatedAttributes extends java.lang.Object
Deprecated attributes.Note: This class isn't called "Deprecated" to avoid clashing with "java.lang.Deprecated".
If you want to serialize this class, use a serialization proxy.
- Since:
- 1.7.0
- See Also:
Deprecated
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeprecatedAttributes.BuilderBuildsDeprecatedAttributes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeprecatedAttributes.Builderbuilder()Creates a new builder.java.lang.StringgetDescription()Gets the descriptions.java.lang.StringgetSince()Gets version in which the option became deprecated.booleanisForRemoval()Tests whether this option is subject to removal in a future version.java.lang.StringtoString()
-
-
-
Method Detail
-
builder
public static DeprecatedAttributes.Builder builder()
Creates a new builder.- Returns:
- a new builder.
-
getDescription
public java.lang.String getDescription()
Gets the descriptions.- Returns:
- the descriptions.
-
getSince
public java.lang.String getSince()
Gets version in which the option became deprecated.- Returns:
- the version in which the option became deprecated.
-
isForRemoval
public boolean isForRemoval()
Tests whether this option is subject to removal in a future version.- Returns:
- whether this option is subject to removal in a future version.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-