aQute.bnd.version.Version.bumpMajor()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(152)

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

Version.bumpMajor介绍

暂无

代码示例

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

} else if (auto != 0) {
  low = v;
  high = auto == 1 ? v.bumpMajor() : v.bumpMinor();
  start = '[';
  end = ')';

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

} else if (auto != 0) {
  low = v;
  high = auto == 1 ? v.bumpMajor() : v.bumpMinor();
  start = '[';
  end = ')';

代码示例来源:origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

} else if (auto != 0) {
  low = v;
  high = auto == 1 ? v.bumpMajor() : v.bumpMinor();
  start = '[';
  end = ')';

代码示例来源:origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension

} else if (auto != 0) {
  low = v;
  high = auto == 1 ? v.bumpMajor() : v.bumpMinor();
  start = '[';
  end = ')';

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

private void addExtenderRequirement(Set<String> requires, List<String> beans, Version version) {
  Version next = version.bumpMajor();
  Parameters p = new Parameters();
  Attrs a = new Attrs();
  a.put(Constants.FILTER_DIRECTIVE,
    "\"(&(osgi.extender=osgi.cdi)(version>=" + version + ")(!(version>=" + next + ")))\"");
  a.put("beans:List<String>", String.join(",", beans));
  p.put("osgi.extender", a);
  String s = p.toString();
  requires.add(s);
}

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

private void addExtenderRequirement(Set<String> requires, Version version) {
  Version next = version.bumpMajor();
  Parameters p = new Parameters();
  Attrs a = new Attrs();
  a.put(Constants.FILTER_DIRECTIVE,
    "\"(&(" + ExtenderNamespace.EXTENDER_NAMESPACE + "=" + ComponentConstants.COMPONENT_CAPABILITY_NAME
      + ")(" + ExtenderNamespace.CAPABILITY_VERSION_ATTRIBUTE + ">=" + version + ")(!("
      + ExtenderNamespace.CAPABILITY_VERSION_ATTRIBUTE + ">=" + next + ")))\"");
  p.put(ExtenderNamespace.EXTENDER_NAMESPACE, a);
  String s = p.toString();
  requires.add(s);
}

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

private void addExtenderRequirement(Set<String> requires, List<String> beans, Version version) {
  Version next = version.bumpMajor();
  Parameters p = new Parameters();
  Attrs a = new Attrs();
  a.put(Constants.FILTER_DIRECTIVE,
    "\"(&(osgi.extender=osgi.cdi)(version>=" + version + ")(!(version>=" + next + ")))\"");
  a.put("beans:List<String>", String.join(",", beans));
  p.put("osgi.extender", a);
  String s = p.toString();
  requires.add(s);
}

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

private void addExtenderRequirement(Set<String> requires, Version version) {
  Version next = version.bumpMajor();
  Parameters p = new Parameters();
  Attrs a = new Attrs();
  a.put(Constants.FILTER_DIRECTIVE,
    "\"(&(" + ExtenderNamespace.EXTENDER_NAMESPACE + "=" + ComponentConstants.COMPONENT_CAPABILITY_NAME
      + ")(" + ExtenderNamespace.CAPABILITY_VERSION_ATTRIBUTE + ">=" + version + ")(!("
      + ExtenderNamespace.CAPABILITY_VERSION_ATTRIBUTE + ">=" + next + ")))\"");
  p.put(ExtenderNamespace.EXTENDER_NAMESPACE, a);
  String s = p.toString();
  requires.add(s);
}

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

int current = filter.lastIndexOf(")");
VersionRange range = new VersionRange(floor, floor.bumpMajor());
String rangeFilter = range.toFilter();
filter.append(rangeFilter.substring(2, rangeFilter.length() - 1));

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

int current = filter.lastIndexOf(")");
VersionRange range = new VersionRange(floor, floor.bumpMajor());
String rangeFilter = range.toFilter();
filter.append(rangeFilter.substring(2, rangeFilter.length() - 1));

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

Version h = isProvider ? l.bumpMinor() : l.bumpMajor();
  vr = new VersionRange(true, l, h, false);
} else if (Verifier.isVersionRange(v)) {

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

Version h = isProvider ? l.bumpMinor() : l.bumpMajor();
  vr = new VersionRange(true, l, h, false);
} else if (Verifier.isVersionRange(v)) {

相关文章