Package dev.reuss.tmdb.common.name
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 TypeMethodDescriptiondefault intReturns the number of alternative names.default booleanReturns whether the response contains at least one alternative name.default booleanisEmpty()Returns whether the response contains no alternative names.results()Returns the alternative names contained in the response.
-
Method Details
-
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:
trueif there are no alternative names
-
hasAlternativeNames
default boolean hasAlternativeNames()Returns whether the response contains at least one alternative name.- Returns:
trueif alternative names are present
-
alternativeNameCount
default int alternativeNameCount()Returns the number of alternative names.- Returns:
- alternative name count
-