本文整理了Java中com.typesafe.config.Config.getNanoseconds()
方法的一些代码示例,展示了Config.getNanoseconds()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Config.getNanoseconds()
方法的具体详情如下:
包路径:com.typesafe.config.Config
类名称:Config
方法名:getNanoseconds
[英]Get value as a duration in nanoseconds. If the value is already a number it's taken as milliseconds and converted to nanoseconds. If it's a string, it's parsed understanding unit suffixes, as for #getDuration(String,TimeUnit).
[中]以纳秒为单位获取持续时间值。如果该值已经是一个数字,则以毫秒为单位,并转换为纳秒。如果它是一个字符串,则解析为理解单位后缀,如#getDuration(string,TimeUnit)。
代码示例来源:origin: apache/drill
@Override
public Long getNanoseconds(String path) {
return c.getNanoseconds(path);
}
代码示例来源:origin: dremio/dremio-oss
@Override
public Long getNanoseconds(String path) {
return config.getNanoseconds(path);
}
代码示例来源:origin: org.apache.drill/drill-common
@Override
public Long getNanoseconds(String path) {
return c.getNanoseconds(path);
}
代码示例来源:origin: kite-sdk/kite
public long getNanoseconds(Config config, String path) {
addRecognizedArgument(path);
return config.getNanoseconds(path);
}
代码示例来源:origin: org.kitesdk/kite-morphlines-core
public long getNanoseconds(Config config, String path) {
addRecognizedArgument(path);
return config.getNanoseconds(path);
}
内容来源于网络,如有侵权,请联系作者删除!