Package org.codehaus.jackson
Class Version
java.lang.Object
org.codehaus.jackson.Version
- All Implemented Interfaces:
Comparable<Version>
Object that encapsulates version information of a component,
and is return by
Versioned.version()
.- Since:
- 1.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final int
protected final int
protected final int
protected final String
Additional information for snapshot versions; null for non-snapshot (release) versions. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
_majorVersion
protected final int _majorVersion -
_minorVersion
protected final int _minorVersion -
_patchLevel
protected final int _patchLevel -
_snapshotInfo
Additional information for snapshot versions; null for non-snapshot (release) versions.
-
-
Constructor Details
-
Version
-
-
Method Details
-
unknownVersion
Method returns canonical "not known" version, which is used as version in cases where actual version information is not known (instead of null). -
isUknownVersion
public boolean isUknownVersion() -
isSnapshot
public boolean isSnapshot() -
getMajorVersion
public int getMajorVersion() -
getMinorVersion
public int getMinorVersion() -
getPatchLevel
public int getPatchLevel() -
toString
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Version>
-