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 Details

    • LandingStatsResponse

      public LandingStatsResponse(Integer upcomingEvents, Integer upcomingEventVenues, Integer upcomingEventArtists, Integer artistOrigins, Integer artistOriginCities)
      Creates an instance of a LandingStatsResponse record class.
      Parameters:
      upcomingEvents - the value for the upcomingEvents record component
      upcomingEventVenues - the value for the upcomingEventVenues record component
      upcomingEventArtists - the value for the upcomingEventArtists record component
      artistOrigins - the value for the artistOrigins record component
      artistOriginCities - the value for the artistOriginCities record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • upcomingEvents

      public Integer upcomingEvents()
      Returns the value of the upcomingEvents record component.
      Returns:
      the value of the upcomingEvents record component
    • upcomingEventVenues

      public Integer upcomingEventVenues()
      Returns the value of the upcomingEventVenues record component.
      Returns:
      the value of the upcomingEventVenues record component
    • upcomingEventArtists

      public Integer upcomingEventArtists()
      Returns the value of the upcomingEventArtists record component.
      Returns:
      the value of the upcomingEventArtists record component
    • artistOrigins

      public Integer artistOrigins()
      Returns the value of the artistOrigins record component.
      Returns:
      the value of the artistOrigins record component
    • artistOriginCities

      public Integer artistOriginCities()
      Returns the value of the artistOriginCities record component.
      Returns:
      the value of the artistOriginCities record component