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 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 a ApproveableArtistCity record class.
      Parameters:
      artistName - the value for the artistName record component
      artistId - the value for the artistId record component
      cityName - the value for the cityName record component
      cityId - the value for the cityId record component
      cityZoneCode - the value for the cityZoneCode record component
      cityCountryCode - the value for the cityCountryCode record component
      contributedByName - the value for the contributedByName record component
      contributedById - the value for the contributedById record component
      contributedAt - the value for the contributedAt record component
      contributionCountApproved - the value for the contributionCountApproved record component
      contributionCountDenied - the value for the contributionCountDenied record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • artistName

      public String artistName()
      Returns the value of the artistName record component.
      Returns:
      the value of the artistName record component
    • artistId

      public UUID artistId()
      Returns the value of the artistId record component.
      Returns:
      the value of the artistId record component
    • cityName

      public String cityName()
      Returns the value of the cityName record component.
      Returns:
      the value of the cityName record component
    • cityId

      public UUID cityId()
      Returns the value of the cityId record component.
      Returns:
      the value of the cityId record component
    • cityZoneCode

      public String cityZoneCode()
      Returns the value of the cityZoneCode record component.
      Returns:
      the value of the cityZoneCode record component
    • cityCountryCode

      public String cityCountryCode()
      Returns the value of the cityCountryCode record component.
      Returns:
      the value of the cityCountryCode record component
    • contributedByName

      public String contributedByName()
      Returns the value of the contributedByName record component.
      Returns:
      the value of the contributedByName record component
    • contributedById

      public UUID contributedById()
      Returns the value of the contributedById record component.
      Returns:
      the value of the contributedById record component
    • contributedAt

      public Instant contributedAt()
      Returns the value of the contributedAt record component.
      Returns:
      the value of the contributedAt record component
    • contributionCountApproved

      public Integer contributionCountApproved()
      Returns the value of the contributionCountApproved record component.
      Returns:
      the value of the contributionCountApproved record component
    • contributionCountDenied

      public Integer contributionCountDenied()
      Returns the value of the contributionCountDenied record component.
      Returns:
      the value of the contributionCountDenied record component