Package dev.reuss.tmdb.common.title
Interface AlternativeTitlesResponse
- All Known Implementing Classes:
MovieAlternativeTitles,TvSeriesAlternativeTitles
public interface AlternativeTitlesResponse
Common contract for TMDB responses that contain alternative titles.
-
Method Summary
Modifier and TypeMethodDescriptiondefault intReturns the number of alternative titles.Returns the alternative titles contained in the response.default booleanReturns whether the response contains at least one alternative title.default booleanisEmpty()Returns whether the response contains no alternative titles.
-
Method Details
-
alternativeTitles
List<AlternativeTitle> alternativeTitles()Returns the alternative titles contained in the response.- Returns:
- immutable list of alternative titles
-
isEmpty
default boolean isEmpty()Returns whether the response contains no alternative titles.- Returns:
trueif there are no alternative titles
-
hasAlternativeTitles
default boolean hasAlternativeTitles()Returns whether the response contains at least one alternative title.- Returns:
trueif alternative titles are present
-
alternativeTitleCount
default int alternativeTitleCount()Returns the number of alternative titles.- Returns:
- alternative title count
-