Class HostIP

All Implemented Interfaces:
Serializable

public class HostIP extends Pair<String,String>
Instances of this class represent a hostname / ip address pair.
See Also:
  • Constructor Details

    • HostIP

      public HostIP(String hostName)
      Initialize this HostIP object with the specified host name / IP address.
      Parameters:
      hostName - the host name or IP address.
    • HostIP

      public HostIP(String hostName, String ipAddress)
      Initialize this HostIP object with the specified host name and IP address.
      Parameters:
      hostName - the host name.
      ipAddress - the corresponding IP address.
  • Method Details

    • hostName

      public String hostName()
      Get the host name.
      Returns:
      the name as a string.
    • ipAddress

      public String ipAddress()
      Get the ip address.
      Returns:
      the ip address as a string.
    • toString

      public String toString()
      Overrides:
      toString in class Pair<String,String>