Class HostnamePortRequirement

    • Constructor Detail

      • HostnamePortRequirement

        public HostnamePortRequirement​(@CheckForNull
                                       String hostname,
                                       int port)
        Creates a new requirement.
        Parameters:
        hostname - the host.
        port - the port.
    • Method Detail

      • getPort

        public int getPort()
        Returns the required port.
        Returns:
        the required port.