Class AbstractAnalyzerDecision<T>

java.lang.Object
com.novomind.ecom.api.imail.core.result.decision.AbstractAnalyzerDecision<T>
All Implemented Interfaces:
AnalyzerDecision<T>, Comparable<AnalyzerDecision<T>>
Direct Known Subclasses:
CategoryAnalyzerDecision, ContactAnalyzerDecision, LanguageAnalyzerDecision, LocationAnalyzerDecision, RoutingTagAnalyzerDecision, TemplateAnalyzerDecision

public abstract class AbstractAnalyzerDecision<T> extends Object implements AnalyzerDecision<T>
  • Method Details

    • 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(Object otherObj)
      If compared to another AnalyzerDecision instance the equality is based on the object returned by get() otherwise false
      Overrides:
      equals in class Object
      Since:
      11.15
    • canEquals

      public boolean canEquals(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 Object
      Since:
      11.15
    • toString

      public String toString()
      Overrides:
      toString in class Object