net.i2p.router.transport

## Class TransportManager.Port

- java.lang.Object
- - net.i2p.router.transport.TransportManager.Port

- Enclosing class:
    TransportManager

      static class TransportManager.Port
      extends Object

  Port configuration for transport protocols.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `String` | `ip`
    `boolean` | `isIPv6`
    `int` | `port`
    `String` | `style`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Port(String style, int port)` IPv4 only
    `Port(String style, String host, int port)` IPv6 only

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `int` | `hashCode()`

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

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

- - ### Field Detail

    - #### ip

          public final String ip

    - #### isIPv6

          public final boolean isIPv6

    - #### port

          public final int port

    - #### style

          public final String style

  - ### Constructor Detail

    - #### Port

          public Port(String style,
                      int port)

      IPv4 only

    - #### Port

          public Port(String style,
                      String host,
                      int port)

      IPv6 only

  - ### Method Detail

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`