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.IllegalArgumentExceptionpublic int getLower()
public int getUpper()
Copyright © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.