Interface AnalyzerDecision<T>
- Type Parameters:
T- the Type of the AnalyzerDecision
- All Superinterfaces:
Comparable<AnalyzerDecision<T>>
- All Known Implementing Classes:
AbstractAnalyzerDecision,CategoryAnalyzerDecision,ContactAnalyzerDecision,LanguageAnalyzerDecision,LocationAnalyzerDecision,RoutingTagAnalyzerDecision,TemplateAnalyzerDecision
A AnalyzerDecision made by an implementor of
IncomingMessageAnalyzer- Since:
- 11.15
-
Method Summary
Modifier and TypeMethodDescriptiondefault intcompareTo(AnalyzerDecision<T> other) If compared with objects of the same class the comparison is based on the value returned bygetConfidence()(high values first) otherwise based on the name of the class.
Return 0 for Decisions which are equal.get()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).
-
Method Details
-
get
T get()Return the instance (the "value") of the AnalyzerDecision.- Returns:
- the value of this AnalyzerDecision
- Since:
- 11.15
-
getConfidence
double getConfidence()Returns the confidence for this decision.
By contract the valid range for confidence is 0 to 100 (a percent value).- Returns:
- the confidence value for this AnalyzerDecision as double
- Since:
- 11.15
-
compareTo
If compared with objects of the same class the comparison is based on the value returned bygetConfidence()(high values first) otherwise based on the name of the class.
Return 0 for Decisions which are equal.- Specified by:
compareToin interfaceComparable<T>- Since:
- 11.15
-