Class ServerInfo

  • All Implemented Interfaces:
    java.io.Serializable

    public class ServerInfo
    extends java.lang.Object
    implements java.io.Serializable
    Container for a host name and port number.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ServerInfo​(java.lang.String host, int portNumber)
      Construct a new ServerInfo object
    • Constructor Detail

      • ServerInfo

        public ServerInfo​(java.lang.String host,
                          int portNumber)
        Construct a new ServerInfo object
        Parameters:
        host - host name
        portNumber - port number
    • Method Detail

      • getServerName

        public java.lang.String getServerName()
        Get the server name.
      • getPortNumber

        public int getPortNumber()
        Get the port number.
      • 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
      • hashCode

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