Class ApplicationID

java.lang.Object
com.aquima.interactions.foundation.ApplicationID
All Implemented Interfaces:
Serializable

public class ApplicationID extends Object implements Serializable
This class uniquely identifies an application by name and version.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ApplicationID(String name, Version version)
    Default constructor that creates an application id based on an application name and version.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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.
    This method returns the name of the application this id represents.
    This method returns the version of the application this id represents.
    int
     
     
    valueOf(String strApplicationId)
    Creates a ApplicationID from a string representation.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ApplicationID

      public ApplicationID(String name, Version version)
      Default constructor that creates an application id based on an application name and version. Both the name of the application and the version are mandatory.
      Parameters:
      name - The name of the application.
      version - The version of the application.
  • Method Details

    • valueOf

      public static ApplicationID valueOf(String strApplicationId)
      Creates a ApplicationID from a string representation.
      Parameters:
      strApplicationId - string containing the version information.
      Returns:
      a ApplicationID
    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object