Record Class WatchProvider
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.watchproviders.model.WatchProvider
- Record Components:
displayPriorities- region-specific display prioritiesdisplayPriority- default display prioritylogoPath- provider logo image pathproviderName- provider nameproviderId- TMDB provider id
- All Implemented Interfaces:
TmdbModel,Serializable
public record WatchProvider(Map<String,Integer> displayPriorities, int displayPriority, String logoPath, String providerName, int providerId)
extends Record
implements TmdbModel
TMDB watch provider.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayPrioritiesrecord component.intReturns the value of thedisplayPriorityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.logoPath()Returns the value of thelogoPathrecord component.intReturns the value of theproviderIdrecord component.Returns the value of theproviderNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WatchProvider
public WatchProvider(Map<String, Integer> displayPriorities, int displayPriority, String logoPath, String providerName, int providerId) Creates an instance of aWatchProviderrecord class.- Parameters:
displayPriorities- the value for thedisplayPrioritiesrecord componentdisplayPriority- the value for thedisplayPriorityrecord componentlogoPath- the value for thelogoPathrecord componentproviderName- the value for theproviderNamerecord componentproviderId- the value for theproviderIdrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
displayPriorities
Returns the value of thedisplayPrioritiesrecord component.- Returns:
- the value of the
displayPrioritiesrecord component
-
displayPriority
public int displayPriority()Returns the value of thedisplayPriorityrecord component.- Returns:
- the value of the
displayPriorityrecord component
-
logoPath
Returns the value of thelogoPathrecord component.- Returns:
- the value of the
logoPathrecord component
-
providerName
Returns the value of theproviderNamerecord component.- Returns:
- the value of the
providerNamerecord component
-
providerId
public int providerId()Returns the value of theproviderIdrecord component.- Returns:
- the value of the
providerIdrecord component
-