Package dev.reuss.tmdb.common.change
Interface ChangesResponse
- All Known Implementing Classes:
PersonChanges,TvEpisodeChanges,TvSeasonChanges,TvSeriesChanges
public interface ChangesResponse
Common contract for TMDB responses that contain change entries.
-
Method Summary
Modifier and TypeMethodDescriptiondefault intReturns the number of changes in the response.changes()Returns the changes contained in the response.default booleanReturns whether the response contains at least one change.default booleanisEmpty()Returns whether the response contains no changes.
-
Method Details
-
changes
Returns the changes contained in the response.- Returns:
- immutable list of changes
-
isEmpty
default boolean isEmpty()Returns whether the response contains no changes.- Returns:
trueif there are no changes
-
hasChanges
default boolean hasChanges()Returns whether the response contains at least one change.- Returns:
trueif changes are present
-
changeCount
default int changeCount()Returns the number of changes in the response.- Returns:
- change count
-