Class Threshold.Address
- java.lang.Object
-
- org.opennms.netmgt.flows.classification.internal.decision.Threshold<IpAddr>
-
- org.opennms.netmgt.flows.classification.internal.decision.Threshold.Address
-
- Direct Known Subclasses:
Threshold.DstAddress
,Threshold.SrcAddress
public abstract static class Threshold.Address extends Threshold<IpAddr>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.flows.classification.internal.decision.Threshold
Threshold.Address, Threshold.DstAddress, Threshold.DstPort, Threshold.Matches, Threshold.Order, Threshold.Port, Threshold.Protocol, Threshold.SrcAddress, Threshold.SrcPort
-
-
Constructor Summary
Constructors Constructor Description Address(java.util.function.Function<Bounds,Bound<IpAddr>> getBound, java.util.function.BiFunction<Bounds,Bound<IpAddr>,Bounds> setBound, IpAddr address, java.util.function.Function<PreprocessedRule,IpValue> getRuleAddress, java.util.function.Function<ClassificationRequest,IpAddr> getRequestAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Threshold.Order
compare(ClassificationRequest request)
Checks if the given request has a value that is less than, equal to, or greater than the threshold value.boolean
equals(java.lang.Object o)
IpAddr
getThreshold()
int
hashCode()
protected org.opennms.netmgt.flows.classification.internal.decision.Threshold.Match
match(PreprocessedRule rule, Bounds bounds)
Checks if the given rule matches values that are less than, equal to, or greater than this threshold.
-
-
-
Field Detail
-
address
protected final IpAddr address
-
-
Constructor Detail
-
Address
public Address(java.util.function.Function<Bounds,Bound<IpAddr>> getBound, java.util.function.BiFunction<Bounds,Bound<IpAddr>,Bounds> setBound, IpAddr address, java.util.function.Function<PreprocessedRule,IpValue> getRuleAddress, java.util.function.Function<ClassificationRequest,IpAddr> getRequestAddress)
-
-
Method Detail
-
getThreshold
public final IpAddr getThreshold()
- Specified by:
getThreshold
in classThreshold<IpAddr>
-
match
protected final org.opennms.netmgt.flows.classification.internal.decision.Threshold.Match match(PreprocessedRule rule, Bounds bounds)
Description copied from class:Threshold
Checks if the given rule matches values that are less than, equal to, or greater than this threshold.The given bounds are also considered. A rule matches only if it specifies values within the given bounds.
-
compare
public final Threshold.Order compare(ClassificationRequest request)
Description copied from class:Threshold
Checks if the given request has a value that is less than, equal to, or greater than the threshold value. In case that the given request has no value that corresponds to this thresholdThreshold.Order.NA
is returned.
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-