本文整理了Java中org.apache.commons.cli.Option.hasNoValues()
方法的一些代码示例,展示了Option.hasNoValues()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Option.hasNoValues()
方法的具体详情如下:
包路径:org.apache.commons.cli.Option
类名称:Option
方法名:hasNoValues
[英]Returns whether this Option has any values.
[中]返回此选项是否有任何值。
代码示例来源:origin: commons-cli/commons-cli
/**
* Returns the specified value of this Option or
* <code>null</code> if there is no value.
*
* @return the value/first value of this Option or
* <code>null</code> if there is no value.
*/
public String getValue()
{
return hasNoValues() ? null : values.get(0);
}
代码示例来源:origin: commons-cli/commons-cli
/**
* Return the values of this Option as a String array
* or null if there are no values
*
* @return the values of this Option as a String array
* or null if there are no values
*/
public String[] getValues()
{
return hasNoValues() ? null : values.toArray(new String[values.size()]);
}
代码示例来源:origin: commons-cli/commons-cli
/**
* Returns the specified value of this Option or
* <code>null</code> if there is no value.
*
* @param index The index of the value to be returned.
*
* @return the specified value of this Option or
* <code>null</code> if there is no value.
*
* @throws IndexOutOfBoundsException if index is less than 1
* or greater than the number of the values for this Option.
*/
public String getValue(int index) throws IndexOutOfBoundsException
{
return hasNoValues() ? null : values.get(index);
}
代码示例来源:origin: org.cytoscape/cy-commons-cli
/**
* Returns the specified value of this Option or
* <code>null</code> if there is no value.
*
* @return the value/first value of this Option or
* <code>null</code> if there is no value.
*/
public String getValue() {
return hasNoValues() ? null : values.get(0);
}
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.cli
/**
* Returns the specified value of this Option or
* <code>null</code> if there is no value.
*
* @return the value/first value of this Option or
* <code>null</code> if there is no value.
*/
public String getValue()
{
return hasNoValues() ? null : (String) values.get(0);
}
代码示例来源:origin: cytoscape.corelibs/commons-cli-1-x-cytocape-custom
/**
* Returns the specified value of this Option or
* <code>null</code> if there is no value.
*
* @return the value/first value of this Option or
* <code>null</code> if there is no value.
*/
public String getValue() {
return hasNoValues() ? null : (String) this.values.get(0);
}
代码示例来源:origin: cytoscape.corelibs/commons-cli-1-x-cytocape-custom
/**
* Return the values of this Option as a String array
* or null if there are no values
*
* @return the values of this Option as a String array
* or null if there are no values
*/
public String[] getValues() {
return hasNoValues() ? null : (String[]) this.values.toArray(new String[] { });
}
代码示例来源:origin: org.cytoscape/cy-commons-cli
/**
* Return the values of this Option as a String array
* or null if there are no values
*
* @return the values of this Option as a String array
* or null if there are no values
*/
public String[] getValues() {
return hasNoValues() ? null : (String[]) this.values.toArray(new String[] { });
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Returns the specified value of this Option or
* <code>null</code> if there is no value.
*
* @return the value/first value of this Option or
* <code>null</code> if there is no value.
*/
public String getValue()
{
return hasNoValues() ? null : values.get(0);
}
代码示例来源:origin: sdedit/sdedit
/**
* Returns the specified value of this Option or
* <code>null</code> if there is no value.
*
* @return the value/first value of this Option or
* <code>null</code> if there is no value.
*/
public String getValue()
{
return hasNoValues() ? null : (String) values.get(0);
}
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.cli
/**
* Return the values of this Option as a String array
* or null if there are no values
*
* @return the values of this Option as a String array
* or null if there are no values
*/
public String[] getValues()
{
return hasNoValues() ? null : (String[]) values.toArray(new String[values.size()]);
}
代码示例来源:origin: sdedit/sdedit
/**
* Returns the specified value of this Option or
* <code>null</code> if there is no value.
*
* @param index The index of the value to be returned.
*
* @return the specified value of this Option or
* <code>null</code> if there is no value.
*
* @throws IndexOutOfBoundsException if index is less than 1
* or greater than the number of the values for this Option.
*/
public String getValue(int index) throws IndexOutOfBoundsException
{
return hasNoValues() ? null : (String) values.get(index);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Return the values of this Option as a String array
* or null if there are no values
*
* @return the values of this Option as a String array
* or null if there are no values
*/
public String[] getValues()
{
return hasNoValues() ? null : values.toArray(new String[values.size()]);
}
代码示例来源:origin: sdedit/sdedit
/**
* Return the values of this Option as a String array
* or null if there are no values
*
* @return the values of this Option as a String array
* or null if there are no values
*/
public String[] getValues()
{
return hasNoValues() ? null : (String[]) values.toArray(new String[values.size()]);
}
代码示例来源:origin: cytoscape.corelibs/commons-cli-1-x-cytocape-custom
/**
* Returns the specified value of this Option or
* <code>null</code> if there is no value.
*
* @param index The index of the value to be returned.
*
* @return the specified value of this Option or
* <code>null</code> if there is no value.
*
* @throws IndexOutOfBoundsException if index is less than 1
* or greater than the number of the values for this Option.
*/
public String getValue(int index) throws IndexOutOfBoundsException {
return hasNoValues() ? null : (String) this.values.get(index);
}
代码示例来源:origin: org.cytoscape/cy-commons-cli
/**
* Returns the specified value of this Option or
* <code>null</code> if there is no value.
*
* @param index The index of the value to be returned.
*
* @return the specified value of this Option or
* <code>null</code> if there is no value.
*
* @throws IndexOutOfBoundsException if index is less than 1
* or greater than the number of the values for this Option.
*/
public String getValue(int index) throws IndexOutOfBoundsException {
return hasNoValues() ? null : (String) this.values.get(index);
}
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.cli
/**
* Returns the specified value of this Option or
* <code>null</code> if there is no value.
*
* @param index The index of the value to be returned.
*
* @return the specified value of this Option or
* <code>null</code> if there is no value.
*
* @throws IndexOutOfBoundsException if index is less than 1
* or greater than the number of the values for this Option.
*/
public String getValue(int index) throws IndexOutOfBoundsException
{
return hasNoValues() ? null : (String) values.get(index);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Returns the specified value of this Option or
* <code>null</code> if there is no value.
*
* @param index The index of the value to be returned.
*
* @return the specified value of this Option or
* <code>null</code> if there is no value.
*
* @throws IndexOutOfBoundsException if index is less than 1
* or greater than the number of the values for this Option.
*/
public String getValue(int index) throws IndexOutOfBoundsException
{
return hasNoValues() ? null : values.get(index);
}
内容来源于网络,如有侵权,请联系作者删除!