Class LanguageAnalyzerDecision
java.lang.Object
com.novomind.ecom.api.imail.core.result.decision.AbstractAnalyzerDecision<Locale>
com.novomind.ecom.api.imail.core.result.decision.LanguageAnalyzerDecision
- All Implemented Interfaces:
AnalyzerDecision<Locale>
,Comparable<AnalyzerDecision<Locale>>
A
AnalyzerDecision
containing a Locale
.
This is typically added to an IncomingMessageAnalyzerResult
if the language of the contained Locale is suiteable for the analyzed IncomingMessage
.- Since:
- 11.15
-
Constructor Summary
ConstructorsConstructorDescriptionLanguageAnalyzerDecision
(Locale language) Constructs a LanguageAnalyzerDecision for a Locale.LanguageAnalyzerDecision
(Locale language, double confidence) Constructs a LanguageAnalyzerDecision for a Locale with a confidence value. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
If compared to anotherLanguageAnalyzerDecision
instance the equality is based on theLanguage
of the containing Locale objectint
hashCode()
hashCode is based on theLanguage
of the containing Locale objectMethods inherited from class com.novomind.ecom.api.imail.core.result.decision.AbstractAnalyzerDecision
get, getConfidence, 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
-
Constructor Details
-
LanguageAnalyzerDecision
Constructs a LanguageAnalyzerDecision for a Locale with a confidence value.- Parameters:
language
- the Locale containing the language which is the "value" of this AnalyzerDecisionconfidence
- the confidence value ranging from 0 to 100- Since:
- 11.15
-
LanguageAnalyzerDecision
Constructs a LanguageAnalyzerDecision for a Locale.- Parameters:
language
- the Locale containing the language which is the "value" of this AnalyzerDecision- Since:
- 11.15
-
-
Method Details
-
equals
If compared to anotherLanguageAnalyzerDecision
instance the equality is based on theLanguage
of the containing Locale object- Overrides:
equals
in classAbstractAnalyzerDecision<Locale>
- Since:
- 11.15
-
canEquals
- Overrides:
canEquals
in classAbstractAnalyzerDecision<Locale>
- 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 based on theLanguage
of the containing Locale object- Overrides:
hashCode
in classAbstractAnalyzerDecision<Locale>
- Since:
- 11.15
-