Class HostAndPort

java.lang.Object
org.jmxtrans.agent.util.net.HostAndPort

public class HostAndPort
extends Object
Holder for network host and port.
Author:
Cyrille Le Clerc
  • Constructor Details

    • HostAndPort

      public HostAndPort​(String host, int port)
  • Method Details

    • getHost

      public String getHost()
    • getPort

      public int getPort()
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object