org.elasticsearch.Version.isBeta()方法的使用及代码示例

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

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

Version.isBeta介绍

暂无

代码示例

代码示例来源:origin: org.elasticsearch/elasticsearch

@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append(major).append('.').append(minor).append('.').append(revision);
  if (isAlpha()) {
    sb.append("-alpha");
    sb.append(build);
  } else if (isBeta()) {
    if (major >= 2) {
      sb.append("-beta");
    } else {
      sb.append(".Beta");
    }
    sb.append(major < 5 ? build : build-25);
  } else if (build < 99) {
    if (major >= 2) {
      sb.append("-rc");
    } else {
      sb.append(".RC");
    }
    sb.append(build - 50);
  }
  return sb.toString();
}

代码示例来源:origin: harbby/presto-connectors

/**
 * Just the version number (without -SNAPSHOT if snapshot).
 */
public String number() {
  StringBuilder sb = new StringBuilder();
  sb.append(major).append('.').append(minor).append('.').append(revision);
  if (isBeta()) {
    if (major >= 2) {
      sb.append("-beta");
    } else {
      sb.append(".Beta");
    }
    sb.append(build);
  } else if (build < 99) {
    if (major >= 2) {
      sb.append("-rc");
    } else {
      sb.append(".RC");
    }
    sb.append(build - 50);
  }
  return sb.toString();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append(major).append('.').append(minor).append('.').append(revision);
  if (isAlpha()) {
    sb.append("-alpha");
    sb.append(build);
  } else if (isBeta()) {
    if (major >= 2) {
      sb.append("-beta");
    } else {
      sb.append(".Beta");
    }
    sb.append(major < 5 ? build : build-25);
  } else if (build < 99) {
    if (major >= 2) {
      sb.append("-rc");
    } else {
      sb.append(".RC");
    }
    sb.append(build - 50);
  }
  return sb.toString();
}

代码示例来源:origin: com.strapdata.elasticsearch/elasticsearch

@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append(major).append('.').append(minor).append('.').append(revision);
  if (isAlpha()) {
    sb.append("-alpha");
    sb.append(build);
  } else if (isBeta()) {
    if (major >= 2) {
      sb.append("-beta");
    } else {
      sb.append(".Beta");
    }
    sb.append(major < 5 ? build : build-25);
  } else if (build < 99) {
    if (major >= 2) {
      sb.append("-rc");
    } else {
      sb.append(".RC");
    }
    sb.append(build - 50);
  }
  return sb.toString();
}

代码示例来源:origin: apache/servicemix-bundles

@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append(major).append('.').append(minor).append('.').append(revision);
  if (isAlpha()) {
    sb.append("-alpha");
    sb.append(build);
  } else if (isBeta()) {
    if (major >= 2) {
      sb.append("-beta");
    } else {
      sb.append(".Beta");
    }
    sb.append(major < 5 ? build : build-25);
  } else if (build < 99) {
    if (major >= 2) {
      sb.append("-rc");
    } else {
      sb.append(".RC");
    }
    sb.append(build - 50);
  }
  return sb.toString();
}

相关文章