|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fasterxml.jackson.core.Version
public class Version
Object that encapsulates versioning information of a component. Version information includes not just version number but also optionally group and artifact ids of the component being versioned.
Note that optional group and artifact id properties are new with Jackson 2.0: if provided, they should align with Maven artifact information.
Field Summary | |
---|---|
protected String |
_artifactId
|
protected String |
_groupId
|
protected int |
_majorVersion
|
protected int |
_minorVersion
|
protected int |
_patchLevel
|
protected String |
_snapshotInfo
Additional information for snapshot versions; null for non-snapshot (release) versions. |
Constructor Summary | |
---|---|
Version(int major,
int minor,
int patchLevel,
String snapshotInfo)
Deprecated. Use variant that takes group and artifact ids |
|
Version(int major,
int minor,
int patchLevel,
String snapshotInfo,
String groupId,
String artifactId)
|
Method Summary | |
---|---|
int |
compareTo(Version other)
|
boolean |
equals(Object o)
|
String |
getArtifactId()
|
String |
getGroupId()
|
int |
getMajorVersion()
|
int |
getMinorVersion()
|
int |
getPatchLevel()
|
int |
hashCode()
|
boolean |
isSnapshot()
|
boolean |
isUknownVersion()
Deprecated. Since 2.7 use correctly spelled method isUnknownVersion() |
boolean |
isUnknownVersion()
|
String |
toFullString()
|
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). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final int _majorVersion
protected final int _minorVersion
protected final int _patchLevel
protected final String _groupId
protected final String _artifactId
protected final String _snapshotInfo
Constructor Detail |
---|
@Deprecated public Version(int major, int minor, int patchLevel, String snapshotInfo)
public Version(int major, int minor, int patchLevel, String snapshotInfo, String groupId, String artifactId)
Method Detail |
---|
public static Version unknownVersion()
public boolean isUnknownVersion()
isUknownVersion()
public boolean isSnapshot()
@Deprecated public boolean isUknownVersion()
isUnknownVersion()
public int getMajorVersion()
public int getMinorVersion()
public int getPatchLevel()
public String getGroupId()
public String getArtifactId()
public String toFullString()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public int compareTo(Version other)
compareTo
in interface Comparable<Version>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |