com.fasterxml.jackson.core
Class Version

java.lang.Object  extended by com.fasterxml.jackson.core.Version
All Implemented Interfaces:
Comparable<Version>

public class Version
extends Object
implements Comparable<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
 intcompareTo(Version other)
           
 booleanequals(Object o)
           
 StringgetArtifactId()
           
 StringgetGroupId()
           
 intgetMajorVersion()
           
 intgetMinorVersion()
           
 intgetPatchLevel()
           
 inthashCode()
           
 booleanisSnapshot()
           
 booleanisUknownVersion()
           
 StringtoString()
           
static VersionunknownVersion()
          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

_majorVersion

protected final int _majorVersion

_minorVersion

protected final int _minorVersion

_patchLevel

protected final int _patchLevel

_groupId

protected final String _groupId

_artifactId

protected final String _artifactId

_snapshotInfo

protected final String _snapshotInfo
Additional information for snapshot versions; null for non-snapshot (release) versions.

Constructor Detail

Version

@Deprecatedpublic Version(int major,                          int minor,                          int patchLevel,                          String snapshotInfo)
Deprecated. Use variant that takes group and artifact ids


Version

public Version(int major,               int minor,               int patchLevel,               String snapshotInfo,               String groupId,               String artifactId)
Method Detail

unknownVersion

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).


isUknownVersion

public boolean isUknownVersion()

isSnapshot

public boolean isSnapshot()

getMajorVersion

public int getMajorVersion()

getMinorVersion

public int getMinorVersion()

getPatchLevel

public int getPatchLevel()

getGroupId

public String getGroupId()

getArtifactId

public String getArtifactId()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

compareTo

public int compareTo(Version other)
Specified by:
compareTo in interface Comparable<Version>


Copyright © 2012
fasterxml.com. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14