Class WebAppManifest.RelatedApplication

    • Method Detail

      • of

        public static WebAppManifest.RelatedApplication of​(WebAppManifest.Platform platform,
                                                           String url)
        Creates a related application of given platform and URL.
        Parameters:
        platform - The platform on which the application can be found.
        url - The URL at which the application can be found.
        Returns:
        A related application of given platform and URL.
        Throws:
        NullPointerException - When platform or url is null.
      • of

        public static WebAppManifest.RelatedApplication of​(WebAppManifest.Platform platform,
                                                           String url,
                                                           String id)
        Creates a related application of given platform and URL and ID.
        Parameters:
        platform - The platform on which the application can be found.
        url - The URL at which the application can be found.
        id - The ID used to represent the application on the specified platform.
        Returns:
        A related application of given platform and URL and ID.
        Throws:
        NullPointerException - When platform or url is null.
      • getPlatform

        public WebAppManifest.Platform getPlatform()
        Returns the platform on which the application can be found.
        Returns:
        The platform on which the application can be found.
      • getUrl

        public String getUrl()
        Returns the URL at which the application can be found.
        Returns:
        The URL at which the application can be found.
      • getId

        public String getId()
        Returns the ID used to represent the application on the specified platform.
        Returns:
        The ID used to represent the application on the specified platform.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object