public final class PortRange extends Object
public PortRange(String spec)
PortRange
from the spec
String.spec
- port number (e.g "5701") or port range (e.g. "5701-5708")IllegalArgumentException
- if the specified spec is not a valid port or port rangeCopyright © 2023 Hazelcast, Inc.. All rights reserved.