本文整理了Java中org.sonar.api.measures.Metric.isNumericType()
方法的一些代码示例,展示了Metric.isNumericType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Metric.isNumericType()
方法的具体详情如下:
包路径:org.sonar.api.measures.Metric
类名称:Metric
方法名:isNumericType
暂无
代码示例来源:origin: org.codehaus.sonar/sonar-batch
PastMeasuresLoader(DatabaseSession session, Collection<Metric> metrics) {
this.session = session;
this.metricByIds = Maps.newHashMap();
for (Metric metric : metrics) {
if (metric.isNumericType()) {
metricByIds.put(metric.getId(), metric);
}
}
}
代码示例来源:origin: org.codehaus.sonar.plugins/sonar-core-plugin
public TendencyDecorator(TimeMachine timeMachine, MetricFinder metricFinder) {
this.timeMachine = timeMachine;
this.analyser = new TendencyAnalyser();
this.metrics = Lists.newLinkedList();
for (Metric metric : metricFinder.findAll()) {
if (metric.isNumericType()) {
metrics.add(metric);
}
}
}
代码示例来源:origin: org.codehaus.sonar/sonar-plugin-api
return (G) Long.valueOf(value.longValue());
default:
if (getMetric().isNumericType()) {
return (G) getValue();
} else if (getMetric().isDataType()) {
内容来源于网络,如有侵权,请联系作者删除!