All Known Subinterfaces:
CategoryCi, CompetitionCi, CompetitorCi, DrawCi, LotteryCi, MatchCi, PlayerProfileCi, SportCi, SportEventCi, StageCi, TournamentCi
All Known Implementing Classes:
DrawCiImpl, LotteryCiImpl

public interface CacheItem
Base interface of cached entities
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the Urn representing id of the related entity
    getNames(List<Locale> locales)
    Returns the Map containing translated names of the item
    boolean
    Determines whether the current instance has translations for the specified languages
    <T> void
    merge(T endpointData, Locale dataLocale)
     
  • Method Details

    • getId

      Urn getId()
      Returns the Urn representing id of the related entity
      Returns:
      the Urn representing id of the related entity
    • getNames

      Map<Locale,String> getNames(List<Locale> locales)
      Returns the Map containing translated names of the item
      Parameters:
      locales - a List specifying the required languages
      Returns:
      the Map containing translated names of the item
    • hasTranslationsLoadedFor

      boolean hasTranslationsLoadedFor(List<Locale> localeList)
      Determines whether the current instance has translations for the specified languages
      Parameters:
      localeList - a List specifying the required languages
      Returns:
      true if the current instance contains data in the required locals, otherwise false.
    • merge

      <T> void merge(T endpointData, Locale dataLocale)