Record Class LandingStatsResponse
java.lang.Object
java.lang.Record
org.localify.dashboard.dto.response.LandingStatsResponse
- Record Components:
upcomingEvents- The number of upcoming events.upcomingEventVenues- The number of venues with upcoming events.upcomingEventArtists- The number of artists with upcoming events.artistOrigins- The number of artist origins.artistOriginCities- The number of cities with artist origins.
public record LandingStatsResponse(Integer upcomingEvents, Integer upcomingEventVenues, Integer upcomingEventArtists, Integer artistOrigins, Integer artistOriginCities)
extends Record
Represents the response for landing page statistics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartistOriginCitiesrecord component.Returns the value of theartistOriginsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theupcomingEventArtistsrecord component.Returns the value of theupcomingEventsrecord component.Returns the value of theupcomingEventVenuesrecord component.
-
Constructor Details
-
LandingStatsResponse
public LandingStatsResponse(Integer upcomingEvents, Integer upcomingEventVenues, Integer upcomingEventArtists, Integer artistOrigins, Integer artistOriginCities) Creates an instance of aLandingStatsResponserecord class.- Parameters:
upcomingEvents- the value for theupcomingEventsrecord componentupcomingEventVenues- the value for theupcomingEventVenuesrecord componentupcomingEventArtists- the value for theupcomingEventArtistsrecord componentartistOrigins- the value for theartistOriginsrecord componentartistOriginCities- the value for theartistOriginCitiesrecord 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). -
upcomingEvents
Returns the value of theupcomingEventsrecord component.- Returns:
- the value of the
upcomingEventsrecord component
-
upcomingEventVenues
Returns the value of theupcomingEventVenuesrecord component.- Returns:
- the value of the
upcomingEventVenuesrecord component
-
upcomingEventArtists
Returns the value of theupcomingEventArtistsrecord component.- Returns:
- the value of the
upcomingEventArtistsrecord component
-
artistOrigins
Returns the value of theartistOriginsrecord component.- Returns:
- the value of the
artistOriginsrecord component
-
artistOriginCities
Returns the value of theartistOriginCitiesrecord component.- Returns:
- the value of the
artistOriginCitiesrecord component
-