Record Class FestivalResponse
java.lang.Object
java.lang.Record
org.localify.festival.dto.response.FestivalResponse
- Record Components:
id- The ID of the festival.name- The name of the festival.city- The city of the festival.startDate- The start date of the festival.endDate- The end date of the festival.nickname- The nickname of the festival.description- The description of the festival.address- The address of the festival.url- The URL of the festival.scheduleUrl- The URL for the festival schedule.imageUrl- The URL for the festival image.isUserFestival- Whether the festival is one of the user's festivals.
public record FestivalResponse(UUID id, String name, CityResponse city, LocalDate startDate, LocalDate endDate, String nickname, String description, String address, String url, String scheduleUrl, String imageUrl, Boolean isUserFestival)
extends Record
Represents a response for a festival.
-
Constructor Summary
ConstructorsConstructorDescriptionFestivalResponse(UUID id, String name, CityResponse city, LocalDate startDate, LocalDate endDate, String nickname, String description, String address, String url, String scheduleUrl, String imageUrl, Boolean isUserFestival) Creates an instance of aFestivalResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.city()Returns the value of thecityrecord component.Returns the value of thedescriptionrecord component.endDate()Returns the value of theendDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.imageUrl()Returns the value of theimageUrlrecord component.Returns the value of theisUserFestivalrecord component.name()Returns the value of thenamerecord component.nickname()Returns the value of thenicknamerecord component.Returns the value of thescheduleUrlrecord component.Returns the value of thestartDaterecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
FestivalResponse
public FestivalResponse(UUID id, String name, CityResponse city, LocalDate startDate, LocalDate endDate, String nickname, String description, String address, String url, String scheduleUrl, String imageUrl, Boolean isUserFestival) Creates an instance of aFestivalResponserecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentcity- the value for thecityrecord componentstartDate- the value for thestartDaterecord componentendDate- the value for theendDaterecord componentnickname- the value for thenicknamerecord componentdescription- the value for thedescriptionrecord componentaddress- the value for theaddressrecord componenturl- the value for theurlrecord componentscheduleUrl- the value for thescheduleUrlrecord componentimageUrl- the value for theimageUrlrecord componentisUserFestival- the value for theisUserFestivalrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
city
Returns the value of thecityrecord component.- Returns:
- the value of the
cityrecord component
-
startDate
Returns the value of thestartDaterecord component.- Returns:
- the value of the
startDaterecord component
-
endDate
Returns the value of theendDaterecord component.- Returns:
- the value of the
endDaterecord component
-
nickname
Returns the value of thenicknamerecord component.- Returns:
- the value of the
nicknamerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
scheduleUrl
Returns the value of thescheduleUrlrecord component.- Returns:
- the value of the
scheduleUrlrecord component
-
imageUrl
Returns the value of theimageUrlrecord component.- Returns:
- the value of the
imageUrlrecord component
-
isUserFestival
Returns the value of theisUserFestivalrecord component.- Returns:
- the value of the
isUserFestivalrecord component
-