Package org.localify.dto
Record Class ArtistCityContribution
java.lang.Object
java.lang.Record
org.localify.dto.ArtistCityContribution
- Record Components:
cityId- The ID of the city being contributed.
Represents a contribution of a city for an artist.
-
Constructor Summary
ConstructorsConstructorDescriptionArtistCityContribution(@NotNull UUID cityId) Creates an instance of aArtistCityContributionrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull UUIDcityId()Returns the value of thecityIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ArtistCityContribution
Creates an instance of aArtistCityContributionrecord class.- Parameters:
cityId- the value for thecityIdrecord 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). -
cityId
Returns the value of thecityIdrecord component.- Returns:
- the value of the
cityIdrecord component
-