类 Version
java.lang.Object
springfox.documentation.swagger.common.Version
- 所有已实现的接口:
Comparable<Version>
Value object to represent a Version consisting of major, minor and bugfix part.
- 作者:
- Oliver Gierke
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intbooleaninthashCode()booleanReturns whether the currentVersionis the same as the given one.booleanisGreaterThan(Version version) Returns whether the currentVersionis greater (newer) than the given one.booleanisGreaterThanOrEqualTo(Version version) Returns whether the currentVersionis greater (newer) or the same as the given one.booleanisLessThan(Version version) Returns whether the currentVersionis less (older) than the given one.booleanisLessThanOrEqualTo(Version version) Returns whether the currentVersionis less (older) or equal to the current one.static VersionParses the given string representation of a version into aVersionobject.toString()
-
构造器详细资料
-
Version
public Version(int... parts) Creates a newVersionfrom the given integer values. At least one value has to be given but a maximum of 4.- 参数:
parts- must not be null or empty.
-
-
方法详细资料
-
parse
Parses the given string representation of a version into aVersionobject.- 参数:
version- must not be null or empty.- 返回:
- returns version
-
isGreaterThan
Returns whether the currentVersionis greater (newer) than the given one.- 参数:
version- - candidate version- 返回:
- true or false based on version comparison
-
isGreaterThanOrEqualTo
Returns whether the currentVersionis greater (newer) or the same as the given one.- 参数:
version- - candidate version- 返回:
- true or false based on version comparison
-
is
Returns whether the currentVersionis the same as the given one.- 参数:
version- - candidate version- 返回:
- true or false based on version comparison
-
isLessThan
Returns whether the currentVersionis less (older) than the given one.- 参数:
version- - candidate version- 返回:
- true or false based on version comparison
-
isLessThanOrEqualTo
Returns whether the currentVersionis less (older) or equal to the current one.- 参数:
version- - candidate version- 返回:
- true or false based on version comparison
-
compareTo
- 指定者:
compareTo在接口中Comparable<Version>
-
equals
-
hashCode
public int hashCode() -
toString
-