Record Class FestivalCreationResponse

java.lang.Object
java.lang.Record
org.localify.festival.dto.response.FestivalCreationResponse
Record Components:
artists - The number of artists associated with the festival.
stages - The number of stages at the festival.
performances - The number of performances at the festival.
artistsWithoutSpotifyIds - A set of names of artists who could not be matched to a Spotify ID.

public record FestivalCreationResponse(@NotNull Integer artists, Integer stages, Integer performances, Set<String> artistsWithoutSpotifyIds) extends Record
Represents the response after creating or updating a festival.
  • Constructor Details

    • FestivalCreationResponse

      public FestivalCreationResponse(@NotNull @NotNull Integer artists, Integer stages, Integer performances, Set<String> artistsWithoutSpotifyIds)
      Creates an instance of a FestivalCreationResponse record class.
      Parameters:
      artists - the value for the artists record component
      stages - the value for the stages record component
      performances - the value for the performances record component
      artistsWithoutSpotifyIds - the value for the artistsWithoutSpotifyIds 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.
    • artists

      @NotNull public @NotNull Integer artists()
      Returns the value of the artists record component.
      Returns:
      the value of the artists record component
    • stages

      public Integer stages()
      Returns the value of the stages record component.
      Returns:
      the value of the stages record component
    • performances

      public Integer performances()
      Returns the value of the performances record component.
      Returns:
      the value of the performances record component
    • artistsWithoutSpotifyIds

      public Set<String> artistsWithoutSpotifyIds()
      Returns the value of the artistsWithoutSpotifyIds record component.
      Returns:
      the value of the artistsWithoutSpotifyIds record component