public class PortRange extends Object
public PortRange(int low, int high)
IllegalArgumentException
- is either bound is not between
1 and 65535, or if high
is lower than
low
.public PortRange(int port)
public static PortRange valueOf(String s) throws IllegalArgumentException
s
.IllegalArgumentException
public int getLower()
public int getUpper()
Copyright © 2015 Oracle Corporation. All Rights Reserved.