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 TypeMethodDescriptiondefault booleanReturns whether the response contains at least one translation.default booleanisEmpty()Returns whether the response contains no translations.default intReturns the number of translations in the response.List<Translation<T>>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:
trueif there are no translations
-
hasTranslations
default boolean hasTranslations()Returns whether the response contains at least one translation.- Returns:
trueif translations are present
-
translationCount
default int translationCount()Returns the number of translations in the response.- Returns:
- translation count
-