Class PortValue
- java.lang.Object
-
- org.opennms.netmgt.flows.classification.internal.value.PortValue
-
-
Constructor Summary
Constructors Constructor Description PortValue(java.util.List<IPPortRange> ranges)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IPPortRange>
getPortRanges()
boolean
matches(int port)
static PortValue
of(java.lang.String input)
PortValue
shrink(Bound<java.lang.Integer> bound)
Shrinks this rule value by removing those parts that are already covered by the given bound.
-
-
-
Constructor Detail
-
PortValue
public PortValue(java.util.List<IPPortRange> ranges)
-
-
Method Detail
-
of
public static PortValue of(java.lang.String input)
-
getPortRanges
public java.util.List<IPPortRange> getPortRanges()
-
matches
public boolean matches(int port)
-
shrink
public PortValue shrink(Bound<java.lang.Integer> bound)
Description copied from interface:RuleValue
Shrinks this rule value by removing those parts that are already covered by the given bound.The given bounds result from thresholds along paths in the decision tree. During classification those parts that are covered by these threshold need not to be checked again.
-
-