org.apache.commons.configuration.Configuration.getShort()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(112)

本文整理了Java中org.apache.commons.configuration.Configuration.getShort()方法的一些代码示例,展示了Configuration.getShort()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.getShort()方法的具体详情如下:
包路径:org.apache.commons.configuration.Configuration
类名称:Configuration
方法名:getShort

Configuration.getShort介绍

[英]Get a short associated with the given configuration key.
[中]获取与给定配置密钥关联的短消息。

代码示例

代码示例来源:origin: com.netflix.archaius/archaius-core

/**
 * Delegates to the underlying configuration.
 */
@Override
public short getShort(String key) {
  return config.getShort(key);
}

代码示例来源:origin: com.netflix.archaius/archaius-legacy

/**
 * Delegates to the underlying configuration.
 */
@Override
public short getShort(String key, short defaultValue) {
  return config.getShort(key, defaultValue);
}

代码示例来源:origin: com.netflix.archaius/archaius-core

/**
 * Delegates to the underlying configuration.
 */
@Override
public short getShort(String key, short defaultValue) {
  return config.getShort(key, defaultValue);
}

代码示例来源:origin: com.netflix.archaius/archaius-legacy

/**
 * Delegates to the underlying configuration.
 */
@Override
public short getShort(String key) {
  return config.getShort(key);
}

代码示例来源:origin: com.netflix.archaius/archaius-core

/**
 * Delegates to the underlying configuration.
 */
@Override
public Short getShort(String key, Short defaultValue) {
  return config.getShort(key, defaultValue);
}

代码示例来源:origin: org.jboss.forge/forge-shell

@Override
public short getShort(final String key)
{
 return delegate.getShort(key);
}

代码示例来源:origin: org.jboss.forge/forge-shell

@Override
public Short getShort(final String key, final Short defaultValue)
{
 return delegate.getShort(key, defaultValue);
}

代码示例来源:origin: org.jboss.forge/forge-shell

@Override
public short getShort(final String key, final short defaultValue)
{
 return delegate.getShort(key, defaultValue);
}

代码示例来源:origin: com.cisco.oss.foundation/configuration-api

@Override
  public Short readValue(String name, Short defValue) {
    return config().getShort(name, defValue);
  }
}

代码示例来源:origin: com.netflix.archaius/archaius-legacy

/**
 * Delegates to the underlying configuration.
 */
@Override
public Short getShort(String key, Short defaultValue) {
  return config.getShort(key, defaultValue);
}

代码示例来源:origin: com.manydesigns/elements

public static short getShort(Configuration configuration, String key) {
    return configuration.getShort(key);
  }
}

代码示例来源:origin: ManyDesigns/Portofino

public static short getShort(Configuration configuration, String key) {
    return configuration.getShort(key);
  }
}

代码示例来源:origin: com.nesscomputing.components/ness-config

@Override
public short getShort(String key, short defaultValue) {
  return delegate.getShort(key, defaultValue);
}

代码示例来源:origin: com.cisco.oss.foundation/configuration-api

@Override
public Short readValue(String name) {
  return config().getShort(name);
}

代码示例来源:origin: com.nesscomputing.components/ness-config

@Override
public short getShort(String key) {
  return delegate.getShort(key);
}

代码示例来源:origin: com.nesscomputing.components/ness-config

@Override
public Short getShort(String key, Short defaultValue) {
  return delegate.getShort(key, defaultValue);
}

代码示例来源:origin: pl.edu.icm.synat/synat-platform-api

@Override
public short getShort(final String key) {
  return configuration.getShort(childNodeKey(key));
}

代码示例来源:origin: pl.edu.icm.synat/synat-platform-api

@Override
public short getShort(final String key, final short defaultValue) {
  return configuration.getShort(childNodeKey(key), defaultValue);
}

代码示例来源:origin: pl.edu.icm.synat/synat-platform-api

@Override
public Short getShort(final String key, final Short defaultValue) {
  return configuration.getShort(childNodeKey(key), defaultValue);
}

代码示例来源:origin: org.apache.bookkeeper/bookkeeper-common

/**
 * Retrieve the setting from the configuration <tt>conf</tt> as a {@link Short} value.
 *
 * @param conf configuration to retrieve the setting
 * @return the value as a short number
 */
public short getShort(Configuration conf) {
  checkArgument(type() == Type.SHORT, "'" + name() + "' is NOT a SHORT numeric setting");
  return conf.getShort(name(), (Short) defaultValue());
}

相关文章