Class DefaultApplicationId

  • All Implemented Interfaces:
    ApplicationId

    public class DefaultApplicationId
    extends java.lang.Object
    implements ApplicationId
    Application identifier.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultApplicationId​(int id, java.lang.String name)
      Creates a new application ID.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      short id()
      Returns the application id.
      java.lang.String name()
      Returns the applications supplied identifier.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • DefaultApplicationId

        public DefaultApplicationId​(int id,
                                    java.lang.String name)
        Creates a new application ID.
        Parameters:
        id - application identifier
        name - application name
    • Method Detail

      • id

        public short id()
        Description copied from interface: ApplicationId
        Returns the application id. This must be non-negative.
        Specified by:
        id in interface ApplicationId
        Returns:
        a short value
      • name

        public java.lang.String name()
        Description copied from interface: ApplicationId
        Returns the applications supplied identifier.
        Specified by:
        name in interface ApplicationId
        Returns:
        a string identifier
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object