Record Class WatchProviderAvailability
java.lang.Object
java.lang.Record
dev.reuss.tmdb.common.watchprovider.WatchProviderAvailability
- Record Components:
link- TMDB watch provider linkflatrate- flatrate streaming providersrent- rental providersbuy- purchase providersads- ad-supported providersfree- free providers
- All Implemented Interfaces:
TmdbModel,Serializable
public record WatchProviderAvailability(String link, List<WatchProvider> flatrate, List<WatchProvider> rent, List<WatchProvider> buy, List<WatchProvider> ads, List<WatchProvider> free)
extends Record
implements TmdbModel
Watch provider availability for a specific region.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWatchProviderAvailability(String link, List<WatchProvider> flatrate, List<WatchProvider> rent, List<WatchProvider> buy, List<WatchProvider> ads, List<WatchProvider> free) Creates an instance of aWatchProviderAvailabilityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionads()Returns the value of theadsrecord component.buy()Returns the value of thebuyrecord component.final booleanIndicates whether some other object is "equal to" this one.flatrate()Returns the value of theflatraterecord component.free()Returns the value of thefreerecord component.final inthashCode()Returns a hash code value for this object.link()Returns the value of thelinkrecord component.rent()Returns the value of therentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WatchProviderAvailability
public WatchProviderAvailability(String link, List<WatchProvider> flatrate, List<WatchProvider> rent, List<WatchProvider> buy, List<WatchProvider> ads, List<WatchProvider> free) Creates an instance of aWatchProviderAvailabilityrecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
link
Returns the value of thelinkrecord component.- Returns:
- the value of the
linkrecord component
-
flatrate
Returns the value of theflatraterecord component.- Returns:
- the value of the
flatraterecord component
-
rent
Returns the value of therentrecord component.- Returns:
- the value of the
rentrecord component
-
buy
Returns the value of thebuyrecord component.- Returns:
- the value of the
buyrecord component
-
ads
Returns the value of theadsrecord component.- Returns:
- the value of the
adsrecord component
-
free
Returns the value of thefreerecord component.- Returns:
- the value of the
freerecord component
-