|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.PortRange
public class PortRange
Immutable class representing a port range.
| Constructor Summary | |
|---|---|
PortRange(int port)
Creates a port range containing a single port. |
|
PortRange(int low,
int high)
Creates a port range with the given bounds (both inclusive). |
|
| Method Summary | |
|---|---|
int |
getLower()
|
int |
getUpper()
|
java.lang.String |
toString()
|
static PortRange |
valueOf(java.lang.String s)
Parse a port range. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PortRange(int low,
int high)
java.lang.IllegalArgumentException - is either bound is not between
1 and 65535, or if high is lower than
low.public PortRange(int port)
| Method Detail |
|---|
public static PortRange valueOf(java.lang.String s)
throws java.lang.IllegalArgumentException
s.
java.lang.IllegalArgumentExceptionpublic int getLower()
public int getUpper()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||