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
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanIf compared to anotherAnalyzerDecisioninstance the equality is based on the object returned byget()otherwise falseget()Return the instance (the "value") of the AnalyzerDecision.doubleReturns the confidence for this decision.
By contract the valid range for confidence is 0 to 100 (a percent value).inthashCode()hashCode is delegated to the object returned byget().toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.novomind.ecom.api.imail.core.result.decision.AnalyzerDecision
compareTo
-
Method Details
-
get
Description copied from interface:AnalyzerDecisionReturn the instance (the "value") of the AnalyzerDecision.- Specified by:
getin interfaceAnalyzerDecision<T>- Returns:
- the value of this AnalyzerDecision
-
getConfidence
public double getConfidence()Description copied from interface:AnalyzerDecisionReturns the confidence for this decision.
By contract the valid range for confidence is 0 to 100 (a percent value).- Specified by:
getConfidencein interfaceAnalyzerDecision<T>- Returns:
- the confidence value for this AnalyzerDecision as double
-
equals
If compared to anotherAnalyzerDecisioninstance the equality is based on the object returned byget()otherwise false -
canEquals
- 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 byget(). -
toString
-