public class Port
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Port.Protocol
Represents the protocol portion of the port.
|
| Constructor and Description |
|---|
Port(int port,
Port.Protocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
getPort() |
Port.Protocol |
getProtocol() |
int |
hashCode() |
java.lang.String |
toString() |
public Port(int port,
Port.Protocol protocol)
public int getPort()
public Port.Protocol getProtocol()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object