public class CmdLineRegisteredOption extends CmdLineOption
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
description |
protected int |
m_minValuesCount |
altName, name| Constructor and Description |
|---|
CmdLineRegisteredOption(java.lang.String name,
int minValuesCount) |
CmdLineRegisteredOption(java.lang.String name,
java.lang.String altName,
int minValuesCount) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns
super.equals(obj) because the minimum number required arguments
should not be part of the CmdLineRegisteredOption identity (only the name gets used). |
int |
getMinValueCount() |
int |
hashCode()
hashCode should only depend on option name, thus calling
super.hashCode(). |
getAlternativeName, getNameprotected int m_minValuesCount
protected java.lang.String description
public CmdLineRegisteredOption(java.lang.String name,
int minValuesCount)
public CmdLineRegisteredOption(java.lang.String name,
java.lang.String altName,
int minValuesCount)
public int getMinValueCount()
public boolean equals(java.lang.Object obj)
super.equals(obj) because the minimum number required arguments
should not be part of the CmdLineRegisteredOption identity (only the name gets used).
We override this method anyway, to document this fact.equals in class CmdLineOptionObject.equals(Object)public int hashCode()
super.hashCode().
We override this method to document this fact.hashCode in class CmdLineOptionObject.hashCode()