Package net.solarnetwork.node.setup
Class BundlePluginVersion
java.lang.Object
net.solarnetwork.node.setup.BundlePluginVersion
- All Implemented Interfaces:
Comparable<PluginVersion>,PluginVersion
PluginVersion implementation that wraps an OSGi
Version.- Version:
- 1.0
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionBundlePluginVersion(org.osgi.framework.Version version) Construct with aVersion. -
Method Summary
Modifier and TypeMethodDescriptionGet a normalized string encoding of this version.intintgetMajor()Returns the major component of this version identifier.intgetMicro()Returns the micro component of this version identifier.intgetMinor()Returns the minor component of this version identifier.Returns the qualifier component of this version identifier.toString()
-
Constructor Details
-
BundlePluginVersion
public BundlePluginVersion(org.osgi.framework.Version version) Construct with aVersion.- Parameters:
version- the Version to wrap
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<PluginVersion>
-
getMajor
public int getMajor()Description copied from interface:PluginVersionReturns the major component of this version identifier.- Specified by:
getMajorin interfacePluginVersion- Returns:
- The major component.
-
getMinor
public int getMinor()Description copied from interface:PluginVersionReturns the minor component of this version identifier.- Specified by:
getMinorin interfacePluginVersion- Returns:
- The minor component.
-
getMicro
public int getMicro()Description copied from interface:PluginVersionReturns the micro component of this version identifier.- Specified by:
getMicroin interfacePluginVersion- Returns:
- The micro component.
-
getQualifier
Description copied from interface:PluginVersionReturns the qualifier component of this version identifier.- Specified by:
getQualifierin interfacePluginVersion- Returns:
- The qualifier component.
-
asNormalizedString
Description copied from interface:PluginVersionGet a normalized string encoding of this version.- Specified by:
asNormalizedStringin interfacePluginVersion- Returns:
- a string
-
toString
-