Interface KeywordsResponse

All Known Implementing Classes:
MovieKeywords, TvSeriesKeywords

public interface KeywordsResponse
Common contract for TMDB responses that contain keywords.
  • Method Summary

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

    • keywords

      List<Keyword> 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:
      true if there are no keywords
    • hasKeywords

      default boolean hasKeywords()
      Returns whether the response contains at least one keyword.
      Returns:
      true if keywords are present
    • keywordCount

      default int keywordCount()
      Returns the number of keywords in the response.
      Returns:
      keyword count