Class BundlePluginVersion

java.lang.Object
net.solarnetwork.node.setup.BundlePluginVersion
All Implemented Interfaces:
Comparable<PluginVersion>, PluginVersion

public class BundlePluginVersion extends Object implements PluginVersion
PluginVersion implementation that wraps an OSGi Version.
Version:
1.0
Author:
matt
  • Constructor Details

    • BundlePluginVersion

      public BundlePluginVersion(org.osgi.framework.Version version)
      Construct with a Version.
      Parameters:
      version - the Version to wrap
  • Method Details

    • compareTo

      public int compareTo(PluginVersion o)
      Specified by:
      compareTo in interface Comparable<PluginVersion>
    • getMajor

      public int getMajor()
      Description copied from interface: PluginVersion
      Returns the major component of this version identifier.
      Specified by:
      getMajor in interface PluginVersion
      Returns:
      The major component.
    • getMinor

      public int getMinor()
      Description copied from interface: PluginVersion
      Returns the minor component of this version identifier.
      Specified by:
      getMinor in interface PluginVersion
      Returns:
      The minor component.
    • getMicro

      public int getMicro()
      Description copied from interface: PluginVersion
      Returns the micro component of this version identifier.
      Specified by:
      getMicro in interface PluginVersion
      Returns:
      The micro component.
    • getQualifier

      public String getQualifier()
      Description copied from interface: PluginVersion
      Returns the qualifier component of this version identifier.
      Specified by:
      getQualifier in interface PluginVersion
      Returns:
      The qualifier component.
    • asNormalizedString

      public String asNormalizedString()
      Description copied from interface: PluginVersion
      Get a normalized string encoding of this version.
      Specified by:
      asNormalizedString in interface PluginVersion
      Returns:
      a string
    • toString

      public String toString()
      Overrides:
      toString in class Object