public class PortRange extends Object
Constructor and Description |
---|
PortRange()
Constructs range of ports, where first and last port numbers are equal to 0.
|
PortRange(int singlePort)
Constructs range of ports with a single element, where first and last port numbers are equal to specified number.
|
PortRange(int first,
int last)
Constructs range of ports with specified first and last port numbers.
|
Modifier and Type | Method and Description |
---|---|
int |
First()
Returns the first port number in the range.
|
int |
Last()
Returns the last port number in the range.
|
String |
toString() |
public PortRange()
public PortRange(int singlePort)
singlePort
- the number, first and last port numbers will be equal to.public PortRange(int first, int last)
first
- first port number in the range.last
- last port number in the range.Copyright © 2005–2024 Onix Solutions. All rights reserved.