Class AbstractAnalyzerDecision<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canEquals​(java.lang.Object other)  
      boolean equals​(java.lang.Object otherObj)
      If compared to another AnalyzerDecision instance the equality is based on the object returned by get() otherwise false
      T get()
      Return the instance (the "value") of the AnalyzerDecision.
      double getConfidence()
      Returns the confidence for this decision.
      By contract the valid range for confidence is 0 to 100 (a percent value).
      int hashCode()
      hashCode is delegated to the object returned by get().
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • get

        public T get()
        Description copied from interface: AnalyzerDecision
        Return the instance (the "value") of the AnalyzerDecision.
        Specified by:
        get in interface AnalyzerDecision<T>
        Returns:
        the value of this AnalyzerDecision
      • getConfidence

        public double getConfidence()
        Description copied from interface: AnalyzerDecision
        Returns the confidence for this decision.
        By contract the valid range for confidence is 0 to 100 (a percent value).
        Specified by:
        getConfidence in interface AnalyzerDecision<T>
        Returns:
        the confidence value for this AnalyzerDecision as double
      • equals

        public boolean equals​(java.lang.Object otherObj)
        If compared to another AnalyzerDecision instance the equality is based on the object returned by get() otherwise false
        Overrides:
        equals in class java.lang.Object
        Since:
        11.15
      • canEquals

        public boolean canEquals​(java.lang.Object other)
        Parameters:
        other - the other object
        Returns:
        true if the other object is an instance of the class in which canEqual is (re)defined, false otherwise. It is called from equals to make sure that the objects are comparable both ways.
      • hashCode

        public int hashCode()
        hashCode is delegated to the object returned by get().
        Overrides:
        hashCode in class java.lang.Object
        Since:
        11.15
      • toString

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