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 TypeMethodDescriptionboolean
boolean
If compared to anotherAnalyzerDecision
instance the equality is based on the object returned byget()
otherwise falseget()
Return the instance (the "value") of the AnalyzerDecision.double
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 byget()
.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.novomind.ecom.api.imail.core.result.decision.AnalyzerDecision
compareTo
-
Method Details
-
get
Description copied from interface:AnalyzerDecision
Return the instance (the "value") of the AnalyzerDecision.- Specified by:
get
in interfaceAnalyzerDecision<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 interfaceAnalyzerDecision<T>
- Returns:
- the confidence value for this AnalyzerDecision as double
-
equals
If compared to anotherAnalyzerDecision
instance 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
-