Package dev.reuss.tmdb.common.keyword
Interface KeywordsResponse
- All Known Implementing Classes:
MovieKeywords,TvSeriesKeywords
public interface KeywordsResponse
Common contract for TMDB responses that contain keywords.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturns whether the response contains at least one keyword.default booleanisEmpty()Returns whether the response contains no keywords.default intReturns the number of keywords in the response.keywords()Returns the keywords contained in the response.
-
Method Details
-
keywords
Returns the keywords contained in the response.- Returns:
- immutable list of keywords
-
isEmpty
default boolean isEmpty()Returns whether the response contains no keywords.- Returns:
trueif there are no keywords
-
hasKeywords
default boolean hasKeywords()Returns whether the response contains at least one keyword.- Returns:
trueif keywords are present
-
keywordCount
default int keywordCount()Returns the number of keywords in the response.- Returns:
- keyword count
-