public class PortsWithProtocol extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PortsWithProtocol.Protocol
Represents the protocol portion of the port.
|
| Modifier and Type | Method and Description |
|---|---|
static PortsWithProtocol |
forRange(int minPort,
int maxPort,
PortsWithProtocol.Protocol protocol)
Creates a new
PortsWithProtocol with the specified range and protocol. |
static PortsWithProtocol |
forSingle(int port,
PortsWithProtocol.Protocol protocol)
Creates a new
PortsWithProtocol with the port number and protocol. |
int |
getMaxPort() |
int |
getMinPort() |
PortsWithProtocol.Protocol |
getProtocol() |
public static PortsWithProtocol forRange(int minPort, int maxPort, PortsWithProtocol.Protocol protocol)
PortsWithProtocol with the specified range and protocol.minPort - the minimum port numbermaxPort - the maximum port numberprotocol - the protocolPortsWithProtocolpublic static PortsWithProtocol forSingle(int port, PortsWithProtocol.Protocol protocol)
PortsWithProtocol with the port number and protocol.port - the port numberprotocol - the protocolPortsWithProtocolpublic int getMinPort()
public int getMaxPort()
public PortsWithProtocol.Protocol getProtocol()
Copyright © 2018. All rights reserved.