类 LifecycleVersion
java.lang.Object
cn.taketoday.buildpack.platform.build.LifecycleVersion
- 所有已实现的接口:
Comparable<LifecycleVersion>
A lifecycle version number comprised of a major, minor and patch value.
- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Harry Yang
-
字段概要
字段修饰符和类型字段说明private static final Comparator<LifecycleVersion>private final intprivate final intprivate final int -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intcompareTo(LifecycleVersion other) boolean(专用程序包) intgetMajor()Return the major version number.(专用程序包) intgetMinor()Return the minor version number.(专用程序包) intgetPatch()Return the patch version number.inthashCode()(专用程序包) booleanReturn if this version is greater than or equal to the specified version.(专用程序包) static LifecycleVersionFactory method to parse a string into aLifecycleVersioninstance.toString()
-
字段详细资料
-
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
-
hashCode
public int hashCode() -
toString
-
isEqualOrGreaterThan
Return if this version is greater than or equal to the specified version.- 参数:
other- the version to compare- 返回:
trueif this version is greater than or equal to the specified version
-
compareTo
- 指定者:
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
Factory method to parse a string into aLifecycleVersioninstance.- 参数:
value- the value to parse.- 返回:
- the corresponding
LifecycleVersion - 抛出:
IllegalArgumentException- if the value could not be parsed
-