Note that optional group and artifact id properties are new with Jackson 2.0: if provided, they should align with Maven artifact information.
| Modifier and Type | Field and Description |
|---|---|
| protected final String | |
| protected final String | |
| protected final int | |
| protected final int | |
| protected final int | |
| protected final String | _snapshotInfo
Additional information for snapshot versions; null for non-snapshot (release) versions. |
| private static final long | |
| private static final Version |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(Version
the object to be compared. other)Implements java. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public String | |
| public String | |
| public int | |
| public int | |
| public int | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public String | |
| public String | |
| public static Version | Returns: Version instance to use as a placeholder when actual version is not known (or not relevant)Method returns canonical "not known" version, which is used as version in cases where actual version information is not known (instead of null). |
| _artifactId | back to summary |
|---|---|
| protected final String _artifactId | |
| _groupId | back to summary |
|---|---|
| protected final String _groupId | |
| _majorVersion | back to summary |
|---|---|
| protected final int _majorVersion | |
| _minorVersion | back to summary |
|---|---|
| protected final int _minorVersion | |
| _patchLevel | back to summary |
|---|---|
| protected final int _patchLevel | |
| _snapshotInfo | back to summary |
|---|---|
| protected final String _snapshotInfo Additional information for snapshot versions; null for non-snapshot (release) versions. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| UNKNOWN_VERSION | back to summary |
|---|---|
| private static final Version UNKNOWN_VERSION | |
| Version | back to summary |
|---|---|
| public Version(int major, int minor, int patchLevel, String snapshotInfo)
Deprecated Use variant that takes group and artifact ids
| |
| Version | back to summary |
|---|---|
| public Version(int major, int minor, int patchLevel, String snapshotInfo, String groupId, String artifactId) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Version other) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getArtifactId | back to summary |
|---|---|
| public String getArtifactId() | |
| getGroupId | back to summary |
|---|---|
| public String getGroupId() | |
| getMajorVersion | back to summary |
|---|---|
| public int getMajorVersion() | |
| getMinorVersion | back to summary |
|---|---|
| public int getMinorVersion() | |
| getPatchLevel | back to summary |
|---|---|
| public int getPatchLevel() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isSnapshot | back to summary |
|---|---|
| public boolean isSnapshot() | |
| isUknownVersion | back to summary |
|---|---|
| public boolean isUknownVersion()
Deprecated Since 2.7 use correctly spelled method
| |
| isUnknownVersion | back to summary |
|---|---|
public boolean isUnknownVersion()
| |
| toFullString | back to summary |
|---|---|
| public String toFullString() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| unknownVersion | back to summary |
|---|---|
| public 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).
| |