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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Integerartists()Returns the value of theartistsrecord component.Returns the value of theartistsWithoutSpotifyIdsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theperformancesrecord component.stages()Returns the value of thestagesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FestivalCreationResponse
public FestivalCreationResponse(@NotNull @NotNull Integer artists, Integer stages, Integer performances, Set<String> artistsWithoutSpotifyIds) Creates an instance of aFestivalCreationResponserecord class.- Parameters:
artists- the value for theartistsrecord componentstages- the value for thestagesrecord componentperformances- the value for theperformancesrecord componentartistsWithoutSpotifyIds- the value for theartistsWithoutSpotifyIdsrecord 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). -
artists
Returns the value of theartistsrecord component.- Returns:
- the value of the
artistsrecord component
-
stages
Returns the value of thestagesrecord component.- Returns:
- the value of the
stagesrecord component
-
performances
Returns the value of theperformancesrecord component.- Returns:
- the value of the
performancesrecord component
-
artistsWithoutSpotifyIds
Returns the value of theartistsWithoutSpotifyIdsrecord component.- Returns:
- the value of the
artistsWithoutSpotifyIdsrecord component
-