Class AbstractAnalyzerDecision<T>
- java.lang.Object
-
- com.novomind.ecom.api.imail.core.result.decision.AbstractAnalyzerDecision<T>
-
- All Implemented Interfaces:
AnalyzerDecision<T>
,java.lang.Comparable<AnalyzerDecision<T>>
- Direct Known Subclasses:
CategoryAnalyzerDecision
,LanguageAnalyzerDecision
,LocationAnalyzerDecision
,TemplateAnalyzerDecision
public abstract class AbstractAnalyzerDecision<T> extends java.lang.Object implements AnalyzerDecision<T>
-
-
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 anotherAnalyzerDecision
instance the equality is based on the object returned byget()
otherwise falseT
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).int
hashCode()
hashCode is delegated to the object returned byget()
.java.lang.String
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
-
-
-
-
Method Detail
-
get
public T get()
Description copied from interface:AnalyzerDecision
Return the instance (the "value") of the AnalyzerDecision.- Specified by:
get
in interfaceAnalyzerDecision<T>
- Returns:
- the value of this AnalyzerDecision
-
getConfidence
public double getConfidence()
Description copied from interface:AnalyzerDecision
Returns the confidence for this decision.
By contract the valid range for confidence is 0 to 100 (a percent value).- Specified by:
getConfidence
in interfaceAnalyzerDecision<T>
- Returns:
- the confidence value for this AnalyzerDecision as double
-
equals
public boolean equals(java.lang.Object otherObj)
If compared to anotherAnalyzerDecision
instance the equality is based on the object returned byget()
otherwise false- Overrides:
equals
in classjava.lang.Object
- Since:
- 11.15
-
canEquals
public boolean canEquals(java.lang.Object other)
- 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 delegated to the object returned byget()
.- Overrides:
hashCode
in classjava.lang.Object
- Since:
- 11.15
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-