Interface VideosResponse<T>

Type Parameters:
T - video item type
All Known Implementing Classes:
MovieVideos, TvEpisodeVideos, TvSeasonVideos, TvSeriesVideos

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

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

    • results

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

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

      default boolean hasVideos()
      Returns whether the response contains at least one video.
      Returns:
      true if videos are present
    • videoCount

      default int videoCount()
      Returns the number of videos in the response.
      Returns:
      video count