Package org.localify.artist.dto
Record Class ApproveableArtistCity
java.lang.Object
java.lang.Record
org.localify.artist.dto.ApproveableArtistCity
- Record Components:
artistName- The name of the artist.artistId- The ID of the artist.cityName- The name of the city.cityId- The ID of the city.cityZoneCode- The zone code of the city (e.g., state or province).cityCountryCode- The country code of the city.contributedByName- The name of the user who contributed this relationship.contributedById- The ID of the user who contributed this relationship.contributedAt- The timestamp when the contribution was made.contributionCountApproved- The number of approved contributions by the user.contributionCountDenied- The number of denied contributions by the user.
public record ApproveableArtistCity(String artistName, UUID artistId, String cityName, UUID cityId, String cityZoneCode, String cityCountryCode, String contributedByName, UUID contributedById, Instant contributedAt, Integer contributionCountApproved, Integer contributionCountDenied)
extends Record
Represents an artist-city relationship that can be approved.
This is typically used in admin panels to review user contributions.
-
Constructor Summary
ConstructorsConstructorDescriptionApproveableArtistCity(String artistName, UUID artistId, String cityName, UUID cityId, String cityZoneCode, String cityCountryCode, String contributedByName, UUID contributedById, Instant contributedAt, Integer contributionCountApproved, Integer contributionCountDenied) Creates an instance of aApproveableArtistCityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionartistId()Returns the value of theartistIdrecord component.Returns the value of theartistNamerecord component.Returns the value of thecityCountryCoderecord component.cityId()Returns the value of thecityIdrecord component.cityName()Returns the value of thecityNamerecord component.Returns the value of thecityZoneCoderecord component.Returns the value of thecontributedAtrecord component.Returns the value of thecontributedByIdrecord component.Returns the value of thecontributedByNamerecord component.Returns the value of thecontributionCountApprovedrecord component.Returns the value of thecontributionCountDeniedrecord 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
-
ApproveableArtistCity
public ApproveableArtistCity(String artistName, UUID artistId, String cityName, UUID cityId, String cityZoneCode, String cityCountryCode, String contributedByName, UUID contributedById, Instant contributedAt, Integer contributionCountApproved, Integer contributionCountDenied) Creates an instance of aApproveableArtistCityrecord class.- Parameters:
artistName- the value for theartistNamerecord componentartistId- the value for theartistIdrecord componentcityName- the value for thecityNamerecord componentcityId- the value for thecityIdrecord componentcityZoneCode- the value for thecityZoneCoderecord componentcityCountryCode- the value for thecityCountryCoderecord componentcontributedByName- the value for thecontributedByNamerecord componentcontributedById- the value for thecontributedByIdrecord componentcontributedAt- the value for thecontributedAtrecord componentcontributionCountApproved- the value for thecontributionCountApprovedrecord componentcontributionCountDenied- the value for thecontributionCountDeniedrecord 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). -
artistName
Returns the value of theartistNamerecord component.- Returns:
- the value of the
artistNamerecord component
-
artistId
Returns the value of theartistIdrecord component.- Returns:
- the value of the
artistIdrecord component
-
cityName
Returns the value of thecityNamerecord component.- Returns:
- the value of the
cityNamerecord component
-
cityId
Returns the value of thecityIdrecord component.- Returns:
- the value of the
cityIdrecord component
-
cityZoneCode
Returns the value of thecityZoneCoderecord component.- Returns:
- the value of the
cityZoneCoderecord component
-
cityCountryCode
Returns the value of thecityCountryCoderecord component.- Returns:
- the value of the
cityCountryCoderecord component
-
contributedByName
Returns the value of thecontributedByNamerecord component.- Returns:
- the value of the
contributedByNamerecord component
-
contributedById
Returns the value of thecontributedByIdrecord component.- Returns:
- the value of the
contributedByIdrecord component
-
contributedAt
Returns the value of thecontributedAtrecord component.- Returns:
- the value of the
contributedAtrecord component
-
contributionCountApproved
Returns the value of thecontributionCountApprovedrecord component.- Returns:
- the value of the
contributionCountApprovedrecord component
-
contributionCountDenied
Returns the value of thecontributionCountDeniedrecord component.- Returns:
- the value of the
contributionCountDeniedrecord component
-