本文整理了Java中org.apache.dubbo.common.Version.getIntVersion()
方法的一些代码示例,展示了Version.getIntVersion()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version.getIntVersion()
方法的具体详情如下:
包路径:org.apache.dubbo.common.Version
类名称:Version
方法名:getIntVersion
暂无
代码示例来源:origin: apache/incubator-dubbo
public static boolean isSupportResponseAttachment(String version) {
if (StringUtils.isEmpty(version)) {
return false;
}
// for previous dubbo version(2.0.10/020010~2.6.2/020602), this version is the jar's version, so they need to
// be ignore
int iVersion = getIntVersion(version);
if (iVersion >= 2001000 && iVersion <= 2060200) {
return false;
}
return iVersion >= LOWEST_VERSION_FOR_RESPONSE_ATTACHMENT;
}
代码示例来源:origin: apache/incubator-dubbo
public static boolean isSupportResponseAttachment(String version) {
if (StringUtils.isEmpty(version)) {
return false;
}
// for previous dubbo version(2.0.10/020010~2.6.2/020602), this version is the jar's version, so they need to
// be ignore
int iVersion = getIntVersion(version);
if (iVersion >= 2001000 && iVersion <= 2060200) {
return false;
}
return iVersion >= LOWEST_VERSION_FOR_RESPONSE_ATTACHMENT;
}
代码示例来源:origin: apache/incubator-dubbo
/**
* Check the framework release version number to decide if it's 2.7.0 or higher
*/
public static boolean isRelease270OrHigher(String version) {
if (StringUtils.isEmpty(version)) {
return false;
}
if (getIntVersion(version) >= 2070000) {
return true;
}
return false;
}
代码示例来源:origin: apache/incubator-dubbo
/**
* Check the framework release version number to decide if it's 2.7.0 or higher
*/
public static boolean isRelease270OrHigher(String version) {
if (StringUtils.isEmpty(version)) {
return false;
}
if (getIntVersion(version) >= 2070000) {
return true;
}
return false;
}
代码示例来源:origin: org.apache.dubbo/dubbo-common
public static boolean isSupportResponseAttachment(String version) {
if (version == null || version.length() == 0) {
return false;
}
// for previous dubbo version(2.0.10/020010~2.6.2/020602), this version is the jar's version, so they need to
// be ignore
int iVersion = getIntVersion(version);
if (iVersion >= 2001000 && iVersion <= 2060200) {
return false;
}
return iVersion >= LOWEST_VERSION_FOR_RESPONSE_ATTACHMENT;
}
代码示例来源:origin: org.apache.dubbo/dubbo
public static boolean isSupportResponseAttachment(String version) {
if (version == null || version.length() == 0) {
return false;
}
// for previous dubbo version(2.0.10/020010~2.6.2/020602), this version is the jar's version, so they need to
// be ignore
int iVersion = getIntVersion(version);
if (iVersion >= 2001000 && iVersion <= 2060200) {
return false;
}
return iVersion >= LOWEST_VERSION_FOR_RESPONSE_ATTACHMENT;
}
代码示例来源:origin: org.apache.dubbo/dubbo
/**
* Check the framework release version number to decide if it's 2.7.0 or higher
*/
public static boolean isRelease270OrHigher(String version) {
if (StringUtils.isEmpty(version)) {
return false;
}
if (getIntVersion(version) >= 2070000) {
return true;
}
return false;
}
代码示例来源:origin: org.apache.dubbo/dubbo-common
/**
* Check the framework release version number to decide if it's 2.7.0 or higher
*/
public static boolean isRelease270OrHigher(String version) {
if (StringUtils.isEmpty(version)) {
return false;
}
if (getIntVersion(version) >= 2070000) {
return true;
}
return false;
}
内容来源于网络,如有侵权,请联系作者删除!