Class ModuleID

  • All Implemented Interfaces:
    Serializable

    public class ModuleID
    extends Object
    implements Serializable
    This class is used to identify a Module. NOTE: The module identifier is not the same as an application identifier.
    Since:
    7.1
    Author:
    O. Kerpershoek
    See Also:
    Serialized Form
    • Constructor Detail

      • ModuleID

        public ModuleID​(String name,
                        Version version)
        Default constructor that creates a module id based on a module name and version. Both the name of the module and the version are mandatory.
        Parameters:
        name - The name of the module.
        version - The version of the module.
    • Method Detail

      • valueOf

        public static ModuleID valueOf​(String strModuleId)
        Creates a ModuleID from a string representation.
        Parameters:
        strModuleId - string containing the version information.
        Returns:
        a ModuleID
      • getName

        public String getName()
        This method returns the name of the application this id represents.
        Returns:
        The name of the application.
      • getVersion

        public Version getVersion()
        This method returns the version of the application this id represents.
        Returns:
        The version of the application.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        This method will compare the object passed to this method with the application id, and return a boolean indicating whether the object passed exactly identifies the same application.
        Overrides:
        equals in class Object
        Parameters:
        obj - Object which should be compared to this application id.
        Returns:
        boolean indicating whether the object passed is identical to this application id.