Class LanguageAnalyzerDecision

    • 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.
    • 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 AnalyzerDecision
        confidence - 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 another LanguageAnalyzerDecision instance the equality is based on the Language of the containing Locale object
        Overrides:
        equals in class AbstractAnalyzerDecision<java.util.Locale>
        Since:
        11.15
      • canEquals

        public boolean canEquals​(java.lang.Object other)
        Overrides:
        canEquals in class AbstractAnalyzerDecision<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 the Language of the containing Locale object
        Overrides:
        hashCode in class AbstractAnalyzerDecision<java.util.Locale>
        Since:
        11.15