public class Version extends Object implements Comparable<Version>
Note that optional group and artifact id properties are new with Jackson 2.0: if provided, they should align with Maven artifact information.
| 构造器和说明 |
|---|
Version(int major,
int minor,
int patchLevel,
String snapshotInfo)
已过时。
Use variant that takes group and artifact ids
|
Version(int major,
int minor,
int patchLevel,
String snapshotInfo,
String groupId,
String artifactId) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(Version other) |
boolean |
equals(Object o) |
String |
getArtifactId() |
String |
getGroupId() |
int |
getMajorVersion() |
int |
getMinorVersion() |
int |
getPatchLevel() |
int |
hashCode() |
boolean |
isSnapshot() |
boolean |
isUknownVersion() |
String |
toString() |
static Version |
unknownVersion()
Method returns canonical "not known" version, which is used as version
in cases where actual version information is not known (instead of null).
|
@Deprecated public Version(int major, int minor, int patchLevel, String snapshotInfo)
public static Version unknownVersion()
public boolean isUknownVersion()
public boolean isSnapshot()
public int getMajorVersion()
public int getMinorVersion()
public int getPatchLevel()
public String getGroupId()
public String getArtifactId()
public int compareTo(Version other)
compareTo 在接口中 Comparable<Version>Copyright © 2002–2019 The MyMMSCs Software Foundation. All rights reserved.