Class HostAndPort

java.lang.Object
com.mastfrog.url.HostAndPort

public class HostAndPort extends Object
Aggregate object for a host and port.
Author:
Tim Boudreau
  • Field Details

    • host

      public final Host host
    • port

      public final Port port
  • Constructor Details

    • HostAndPort

      public HostAndPort(Host host, Port port)
    • HostAndPort

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

    • isValid

      public boolean isValid()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

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

      public String host()
    • port

      public int port()