| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | FORMAT
Pattern matching <port>[:<port>] |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | PortRange(final int
start of port range low, final int end of port range high)Creates a port range with the given bounds (both inclusive). |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public String | |
| public static PortRange |
| FORMAT | back to summary |
|---|---|
| private static final Pattern FORMAT Pattern matching | |
| lower | back to summary |
|---|---|
| private final int lower | |
| upper | back to summary |
|---|---|
| private final int upper | |
| PortRange | back to summary |
|---|---|
| public PortRange(final int low, final int high) Creates a port range with the given bounds (both inclusive).
| |
| PortRange | back to summary |
|---|---|
| public PortRange(final int port) Creates a port range containing a single port.
| |
| getLower | back to summary |
|---|---|
| public int getLower() | |
| getUpper | back to summary |
|---|---|
| public int getUpper() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| valueOf | back to summary |
|---|---|
| public static PortRange valueOf(String s) throws IllegalArgumentException Parse a port range. A port range consists of either a single integer, or two integers separated by either a comma or a colon. The bounds must be between 1 and 65535, both inclusive. | |