org.fourthline.cling.model.types

## Class HostPort

- java.lang.Object
- - org.fourthline.cling.model.types.HostPort

-     public class HostPort
      extends Object

  Encapsulates a host string and a port.
  Author:
    Christian Bauer

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `HostPort()`
    `HostPort(String host, int port)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `String` | `getHost()`
    `int` | `getPort()`
    `int` | `hashCode()`
    `void` | `setHost(String host)`
    `void` | `setPort(int port)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### HostPort

          public HostPort()

    - #### HostPort

          public HostPort(String host,
                          int port)

  - ### Method Detail

    - #### getHost

          public String getHost()

    - #### setHost

          public void setHost(String host)

    - #### getPort

          public int getPort()

    - #### setPort

          public void setPort(int port)

    - #### 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`

Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.