Class LanguageAnalyzerDecision
- java.lang.Object
-
- com.novomind.ecom.api.imail.core.result.decision.AbstractAnalyzerDecision<java.util.Locale>
-
- com.novomind.ecom.api.imail.core.result.decision.LanguageAnalyzerDecision
-
- All Implemented Interfaces:
AnalyzerDecision<java.util.Locale>
,java.lang.Comparable<AnalyzerDecision<java.util.Locale>>
public final class LanguageAnalyzerDecision extends AbstractAnalyzerDecision<java.util.Locale>
AAnalyzerDecision
containing aLocale
. This is typically added to anIncomingMessageAnalyzerResult
if the language of the contained Locale is suiteable for the analyzedIncomingMessage
.- Since:
- 11.15
-
-
Constructor Summary
Constructors Constructor Description LanguageAnalyzerDecision(java.util.Locale language)
Constructs a LanguageAnalyzerDecision for a Locale.LanguageAnalyzerDecision(java.util.Locale language, double confidence)
Constructs a LanguageAnalyzerDecision for a Locale with a confidence value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEquals(java.lang.Object other)
boolean
equals(java.lang.Object otherObj)
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 object-
Methods 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 Detail
-
LanguageAnalyzerDecision
public LanguageAnalyzerDecision(java.util.Locale language, double confidence)
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
public LanguageAnalyzerDecision(java.util.Locale language)
Constructs a LanguageAnalyzerDecision for a Locale.- Parameters:
language
- the Locale containing the language which is the "value" of this AnalyzerDecision- Since:
- 11.15
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object otherObj)
If compared to anotherLanguageAnalyzerDecision
instance the equality is based on theLanguage
of the containing Locale object- Overrides:
equals
in classAbstractAnalyzerDecision<java.util.Locale>
- Since:
- 11.15
-
canEquals
public boolean canEquals(java.lang.Object other)
- Overrides:
canEquals
in classAbstractAnalyzerDecision<java.util.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<java.util.Locale>
- Since:
- 11.15
-
-