类 LifecycleVersion

java.lang.Object
cn.taketoday.buildpack.platform.build.LifecycleVersion
所有已实现的接口:
Comparable<LifecycleVersion>

class LifecycleVersion extends Object implements Comparable<LifecycleVersion>
A lifecycle version number comprised of a major, minor and patch value.
从以下版本开始:
4.0
作者:
Phillip Webb, Harry Yang
  • 字段详细资料

    • COMPARATOR

      private static final Comparator<LifecycleVersion> COMPARATOR
    • major

      private final int major
    • minor

      private final int minor
    • patch

      private final int patch
  • 构造器详细资料

    • LifecycleVersion

      LifecycleVersion(int major, int minor, int patch)
  • 方法详细资料

    • equals

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

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

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

      boolean isEqualOrGreaterThan(LifecycleVersion other)
      Return if this version is greater than or equal to the specified version.
      参数:
      other - the version to compare
      返回:
      true if this version is greater than or equal to the specified version
    • compareTo

      public int compareTo(LifecycleVersion other)
      指定者:
      compareTo 在接口中 Comparable<LifecycleVersion>
    • getMajor

      int getMajor()
      Return the major version number.
      返回:
      the major version
    • getMinor

      int getMinor()
      Return the minor version number.
      返回:
      the minor version
    • getPatch

      int getPatch()
      Return the patch version number.
      返回:
      the patch version
    • parse

      static LifecycleVersion parse(String value)
      Factory method to parse a string into a LifecycleVersion instance.
      参数:
      value - the value to parse.
      返回:
      the corresponding LifecycleVersion
      抛出:
      IllegalArgumentException - if the value could not be parsed