Interface AnalyzerDecision<T>
-
- Type Parameters:
T
- the Type of the AnalyzerDecision
- All Superinterfaces:
java.lang.Comparable<AnalyzerDecision<T>>
- All Known Implementing Classes:
AbstractAnalyzerDecision
,CategoryAnalyzerDecision
,LanguageAnalyzerDecision
,LocationAnalyzerDecision
,TemplateAnalyzerDecision
public interface AnalyzerDecision<T> extends java.lang.Comparable<AnalyzerDecision<T>>
A AnalyzerDecision made by an implementor ofIncomingMessageAnalyzer
- Since:
- 11.15
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default int
compareTo(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.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).
-
-
-
Method Detail
-
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
default int compareTo(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.- Specified by:
compareTo
in interfacejava.lang.Comparable<T>
- Since:
- 11.15
-
-