aQute.bnd.osgi.Analyzer.isInteger()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(104)

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

Analyzer.isInteger介绍

[英]TRhe cleanup version got confused when people used numeric dates like 201209091230120 as qualifiers. These are too large for Integers. This method checks if the all digit string fits in an integer.

maxint = 
2,147,483,647 = 10 digits

[中]当人们使用数字日期如201209091230120作为限定符时,清理版本变得混乱。这些对于整数来说太大了。此方法检查所有数字字符串是否符合整数

maxint = 
2,147,483,647 = 10 digits

代码示例

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

if (!isInteger(minor)) {
  qualifier = minor;
  minor = "0";
} else if (!isInteger(micro)) {
  qualifier = micro;
  micro = "0";

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

if (!isInteger(minor)) {
  qualifier = minor;
  minor = "0";
} else if (!isInteger(micro)) {
  qualifier = micro;
  micro = "0";

代码示例来源:origin: biz.aQute.bnd/bndlib

if (!isInteger(minor)) {
  qualifier = minor;
  minor = "0";
} else if (!isInteger(micro)) {
  qualifier = micro;
  micro = "0";

代码示例来源:origin: biz.aQute.bnd/bnd

if (!isInteger(minor)) {
  qualifier = minor;
  minor = "0";
} else if (!isInteger(micro)) {
  qualifier = micro;
  micro = "0";

相关文章

Analyzer类方法