Class DefaultApplicationId

    • Constructor Detail

      • DefaultApplicationId

        public DefaultApplicationId​(int id,
                                    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 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 Object