Interface TranslationsResponse<T>

Type Parameters:
T - translation data type
All Known Implementing Classes:
CollectionTranslations, MovieTranslations, PersonTranslations, TvEpisodeTranslations, TvSeasonTranslations, TvSeriesTranslations

public interface TranslationsResponse<T>
Common contract for TMDB responses that contain translations.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Returns whether the response contains at least one translation.
    default boolean
    Returns whether the response contains no translations.
    default int
    Returns the number of translations in the response.
    Returns the translations contained in the response.
  • Method Details

    • translations

      List<Translation<T>> translations()
      Returns the translations contained in the response.
      Returns:
      immutable list of translations
    • isEmpty

      default boolean isEmpty()
      Returns whether the response contains no translations.
      Returns:
      true if there are no translations
    • hasTranslations

      default boolean hasTranslations()
      Returns whether the response contains at least one translation.
      Returns:
      true if translations are present
    • translationCount

      default int translationCount()
      Returns the number of translations in the response.
      Returns:
      translation count