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 TypeMethodDescriptionbooleanbooleanIf compared to anotherLanguageAnalyzerDecisioninstance the equality is based on theLanguageof the containing Locale objectinthashCode()hashCode is based on theLanguageof the containing Locale objectMethods inherited from class com.novomind.ecom.api.imail.core.result.decision.AbstractAnalyzerDecision
get, getConfidence, toStringMethods 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
-
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 anotherLanguageAnalyzerDecisioninstance the equality is based on theLanguageof the containing Locale object- Overrides:
equalsin classAbstractAnalyzerDecision<Locale>- Since:
- 11.15
-
canEquals
- Overrides:
canEqualsin 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 theLanguageof the containing Locale object- Overrides:
hashCodein classAbstractAnalyzerDecision<Locale>- Since:
- 11.15
-