Class VersionInfo
java.lang.Object
com.snmp4j.smi.version.VersionInfo
The
VersionInfo object returns information about the version
of this SNMP4J release.- Version:
- 1.9.0
- Author:
- Frank Fock
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMinimum required SNMP4J major version.static final intMinimum required SNMP4J minor version.static final StringMinimum required SNMP4J patch suffix (empty string means any patch is acceptable).static final intMinimum required SNMP4J update version.static final intMajor version number of this SNMP4J-SMI release.static final intMinor version number of this SNMP4J-SMI release.static final StringOptional patch suffix string (empty for official releases).static final intUpdate (patch) version number of this SNMP4J-SMI release.static final StringFull version string in the formmajor.minor.update[patch]. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks whether SNMP4J has the minimum required version.static StringGets the version string for this release.
-
Field Details
-
MAJOR
public static final int MAJORMajor version number of this SNMP4J-SMI release.- See Also:
-
MINOR
public static final int MINORMinor version number of this SNMP4J-SMI release.- See Also:
-
UPDATE
public static final int UPDATEUpdate (patch) version number of this SNMP4J-SMI release.- See Also:
-
PATCH
Optional patch suffix string (empty for official releases).- See Also:
-
VERSION
Full version string in the formmajor.minor.update[patch].- See Also:
-
DEPENDENCY_SNMP4J_MAJOR
public static final int DEPENDENCY_SNMP4J_MAJORMinimum required SNMP4J major version.- See Also:
-
DEPENDENCY_SNMP4J_MINOR
public static final int DEPENDENCY_SNMP4J_MINORMinimum required SNMP4J minor version.- See Also:
-
DEPENDENCY_SNMP4J_UPDATE
public static final int DEPENDENCY_SNMP4J_UPDATEMinimum required SNMP4J update version.- See Also:
-
DEPENDENCY_SNMP4J_PATCH
Minimum required SNMP4J patch suffix (empty string means any patch is acceptable).- See Also:
-
-
Method Details
-
getVersion
Gets the version string for this release.- Returns:
- a string of the form
major.minor.update[patch].
-
checkMinVersionOfDependencies
public static boolean checkMinVersionOfDependencies()Checks whether SNMP4J has the minimum required version.- Returns:
trueif the dependencies have the minimum required version(s).
-