类 ApiVersions

java.lang.Object
cn.taketoday.buildpack.platform.build.ApiVersions

final class ApiVersions extends Object
A set of API Version numbers comprised of major and minor values.
从以下版本开始:
4.0
作者:
Scott Frederick, Harry Yang
  • 字段详细资料

    • SUPPORTED_PLATFORMS

      static final ApiVersions SUPPORTED_PLATFORMS
      The platform API versions supported by this release.
    • apiVersions

      private final ApiVersion[] apiVersions
  • 构造器详细资料

    • ApiVersions

      private ApiVersions(ApiVersion... versions)
  • 方法详细资料

    • findLatestSupported

      ApiVersion findLatestSupported(String... others)
      Find the latest version among the specified versions that is supported by these API versions.
      参数:
      others - the versions to check against
      返回:
      the version
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • parse

      static ApiVersions parse(String... values)
      Factory method to parse strings into an ApiVersions instance.
      参数:
      values - the values to parse.
      返回:
      the corresponding ApiVersions
      抛出:
      IllegalArgumentException - if any values could not be parsed
    • of

      static ApiVersions of(int major, IntStream minorsInclusive)