public interface PortRange
extends java.lang.Iterable<java.lang.Integer>
PortRanges.fromXxx(...)
this is adaptable from a number, a string, or a collection of numbers or a strings.
String may be of the form:
brooklyn.location.basic.PortRanges
Modifier and Type | Method and Description |
---|---|
boolean |
asBoolean()
Note: this method is only here for use with "groovy truth".
|
boolean |
isEmpty()
Whether there are any ports in the range.
|
boolean isEmpty()
boolean asBoolean()
!isEmpty()
; i.e. true if there is at least one port in the range; false otherwise