Record Class DashFavoriteStatsResponse
java.lang.Object
java.lang.Record
org.localify.dashboard.dto.response.DashFavoriteStatsResponse
- Record Components:
favoriteArtists- The statistics for favorited artists.favoriteEvents- The statistics for favorited events.favoriteVenues- The statistics for favorited venues.
public record DashFavoriteStatsResponse(TimeStatsContainer favoriteArtists, TimeStatsContainer favoriteEvents, TimeStatsContainer favoriteVenues)
extends Record
Represents the response for favorite statistics.
-
Constructor Summary
ConstructorsConstructorDescriptionDashFavoriteStatsResponse(TimeStatsContainer favoriteArtists, TimeStatsContainer favoriteEvents, TimeStatsContainer favoriteVenues) Creates an instance of aDashFavoriteStatsResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefavoriteArtistsrecord component.Returns the value of thefavoriteEventsrecord component.Returns the value of thefavoriteVenuesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DashFavoriteStatsResponse
public DashFavoriteStatsResponse(TimeStatsContainer favoriteArtists, TimeStatsContainer favoriteEvents, TimeStatsContainer favoriteVenues) Creates an instance of aDashFavoriteStatsResponserecord class.- Parameters:
favoriteArtists- the value for thefavoriteArtistsrecord componentfavoriteEvents- the value for thefavoriteEventsrecord componentfavoriteVenues- the value for thefavoriteVenuesrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
favoriteArtists
Returns the value of thefavoriteArtistsrecord component.- Returns:
- the value of the
favoriteArtistsrecord component
-
favoriteEvents
Returns the value of thefavoriteEventsrecord component.- Returns:
- the value of the
favoriteEventsrecord component
-
favoriteVenues
Returns the value of thefavoriteVenuesrecord component.- Returns:
- the value of the
favoriteVenuesrecord component
-