Package org.localify.user.dto
Record Class UserCitiesFestivalsResponse
java.lang.Object
java.lang.Record
org.localify.user.dto.UserCitiesFestivalsResponse
- Record Components:
current- The currently selected city or festival.cities- The user's other cities.festivals- The user's other festivals.
public record UserCitiesFestivalsResponse(UserCityFestivalContainer current, List<UserCityContainer> cities, List<UserFestivalContainer> festivals)
extends Record
A response containing the user's cities and festivals.
-
Constructor Summary
ConstructorsConstructorDescriptionUserCitiesFestivalsResponse(UserCityFestivalContainer current, List<UserCityContainer> cities, List<UserFestivalContainer> festivals) Creates an instance of aUserCitiesFestivalsResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptioncities()Returns the value of thecitiesrecord component.current()Returns the value of thecurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefestivalsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserCitiesFestivalsResponse
public UserCitiesFestivalsResponse(UserCityFestivalContainer current, List<UserCityContainer> cities, List<UserFestivalContainer> festivals) Creates an instance of aUserCitiesFestivalsResponserecord class.
-
-
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). -
current
Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-
cities
Returns the value of thecitiesrecord component.- Returns:
- the value of the
citiesrecord component
-
festivals
Returns the value of thefestivalsrecord component.- Returns:
- the value of the
festivalsrecord component
-