Class Threshold.Protocol

  • Enclosing class:
    Threshold<T extends java.lang.Comparable<T>>

    public static final class Threshold.Protocol
    extends Threshold<java.lang.Integer>
    • Constructor Detail

      • Protocol

        public Protocol​(int protocol)
    • Method Detail

      • getThreshold

        public final java.lang.Integer getThreshold()
        Specified by:
        getThreshold in class Threshold<java.lang.Integer>
      • 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.

        Specified by:
        match in class Threshold<java.lang.Integer>
      • 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 threshold Threshold.Order.NA is returned.
        Specified by:
        compare in class Threshold<java.lang.Integer>
      • equals

        public final boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object