Class TranslationResultEntity

java.lang.Object
com.e1c.langtool.external.cache.TranslationResultEntity
All Implemented Interfaces:
Serializable

public final class TranslationResultEntity extends Object implements Serializable
This class encapsulates a result of translation.
See Also:
  • Constructor Details

    • TranslationResultEntity

      public TranslationResultEntity(List<String> translations)
      Creates a new translation result from list of possible translations.
      Parameters:
      translations - the list of possible translations
    • TranslationResultEntity

      public TranslationResultEntity(String translation)
      Creates a new translation result from only one translation string.
      Parameters:
      translation - the only one possible translation
    • TranslationResultEntity

      public TranslationResultEntity()
      Creates an empty translation result.
  • Method Details

    • getTranslations

      public List<String> getTranslations()
      Returns the list of possible translations.
      Returns:
      the list of possible translations
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object