@Immutable public class NetworkPort extends Object implements INetworkPort
| Constructor and Description |
|---|
NetworkPort(int nPort,
ENetworkProtocol eProtocol,
String sName,
String sDescription) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDescription() |
String |
getName() |
int |
getPort() |
ENetworkProtocol |
getProtocol() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waithasDescription, hasNamepublic NetworkPort(@Nonnegative int nPort, @Nonnull ENetworkProtocol eProtocol, @Nonnull String sName, @Nonnull String sDescription)
@Nonnegative public int getPort()
getPort in interface INetworkPort@Nonnull public ENetworkProtocol getProtocol()
getProtocol in interface INetworkPort@Nonnull public String getName()
getName in interface com.helger.commons.name.IHasNamegetName in interface INetworkPortnull but maybe empty.@Nonnull public String getDescription()
getDescription in interface com.helger.commons.text.IHasDescriptiongetDescription in interface INetworkPortnull but
maybe empty.Copyright © 2016–2019 Philip Helger. All rights reserved.