本文整理了Java中org.jboss.forge.furnace.versions.Versions.isApiCompatible()
方法的一些代码示例,展示了Versions.isApiCompatible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Versions.isApiCompatible()
方法的具体详情如下:
包路径:org.jboss.forge.furnace.versions.Versions
类名称:Versions
方法名:isApiCompatible
[英]This method only returns true if: - The major version of addonApiVersion is equal to the major version of runtimeVersion AND - The minor version of addonApiVersion is less or equal to the minor version of runtimeVersion - The addonApiVersion is null
[中]此方法仅在以下情况下返回true:-addonApiVersion的主版本等于runtimeVersion的主版本,-addonApiVersion的次版本小于或等于runtimeVersion的次版本-addonApiVersion为空
代码示例来源:origin: org.jboss.forge.furnace/furnace-api
@Override
public boolean isCompatible(Furnace furnace, AddonId addonId)
{
return Versions.isApiCompatible(furnace.getVersion(), addonId.getApiVersion());
}
},
代码示例来源:origin: windup/windup
&& Versions.isApiCompatible(runtimeAPIVersion, SingleVersion.valueOf(apiVersion)))
代码示例来源:origin: org.jboss.windup/windup-bootstrap
&& Versions.isApiCompatible(runtimeAPIVersion, SingleVersion.valueOf(apiVersion)))
代码示例来源:origin: org.jboss.forge/forge-bootstrap
&& Versions.isApiCompatible(runtimeAPIVersion, SingleVersion.valueOf(apiVersion)))
代码示例来源:origin: forge/core
&& Versions.isApiCompatible(runtimeAPIVersion, SingleVersion.valueOf(apiVersion)))
代码示例来源:origin: org.jboss.forge.addon/addon-manager-impl
&& Versions.isApiCompatible(specificationVersion, SingleVersion.valueOf(apiVersion)))
内容来源于网络,如有侵权,请联系作者删除!