public final class LTSminVersion extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
static LTSminVersion |
of(int major,
int minor,
int patch)
Returns an
LTSminVersion instance described by the provided versions. |
static LTSminVersion |
parse(String version)
Parses an LTSmin version string and transforms it into an
LTSminVersion instance. |
boolean |
supports(LTSminVersion required)
Checks whether
this version supports the given required version. |
String |
toString() |
public static LTSminVersion of(int major, int minor, int patch)
LTSminVersion instance described by the provided versions.major - the major versionminor - the minor versionpatch - the patch versionLTSminVersion instance described by the provided versions.public static LTSminVersion parse(String version)
LTSminVersion instance. If the version string
cannot be parsed, this method returns a fallback version described by "v0.0.0".version - the version string to parse.LTSminVersion representation of the provided versionpublic boolean supports(LTSminVersion required)
this version supports the given required version.required - the required version that needs to be supportedtrue, if this version supports the given required version, false otherwise.Copyright © 2019. All rights reserved.