Interface AlternativeNamesResponse<T>

Type Parameters:
T - alternative name item type
All Known Implementing Classes:
CompanyAlternativeNames, NetworkAlternativeNames

public interface AlternativeNamesResponse<T>
Common contract for TMDB responses that contain alternative names.
  • Method Summary

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

    • results

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

      default boolean isEmpty()
      Returns whether the response contains no alternative names.
      Returns:
      true if there are no alternative names
    • hasAlternativeNames

      default boolean hasAlternativeNames()
      Returns whether the response contains at least one alternative name.
      Returns:
      true if alternative names are present
    • alternativeNameCount

      default int alternativeNameCount()
      Returns the number of alternative names.
      Returns:
      alternative name count