Record Class ArtistResponse

java.lang.Object
java.lang.Record
org.localify.data.ingest.response.ArtistResponse
Record Components:
dataSource - The data source of the response.
id - The ID of the artist in the data source.
localifyId - The Localify ID of the artist.
musicServiceIds - A map of music service data sources to their corresponding IDs for the artist.
originExplanation - The explanation for the artist's origin (e.g., "Hometown", "Born").
origin - A string describing the artist's origin city or location.
genres - A list of genres associated with the artist.
upcomingEventIds - A list of IDs for the artist's upcoming events.
previousEventIds - A list of IDs for the artist's previous events.
All Implemented Interfaces:
Serializable

public record ArtistResponse(DataSource dataSource, String id, UUID localifyId, @NotNull Map<DataSource,String> musicServiceIds, ArtistCityExplanation originExplanation, String origin, @NotNull List<String> genres, @NotNull List<String> upcomingEventIds, @NotNull List<String> previousEventIds) extends Record implements Serializable
Represents an artist response from a scraper.
See Also:
  • Constructor Details

  • 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.
    • dataSource

      public DataSource dataSource()
      Returns the value of the dataSource record component.
      Returns:
      the value of the dataSource record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • localifyId

      public UUID localifyId()
      Returns the value of the localifyId record component.
      Returns:
      the value of the localifyId record component
    • musicServiceIds

      @NotNull public @NotNull Map<DataSource,String> musicServiceIds()
      Returns the value of the musicServiceIds record component.
      Returns:
      the value of the musicServiceIds record component
    • originExplanation

      public ArtistCityExplanation originExplanation()
      Returns the value of the originExplanation record component.
      Returns:
      the value of the originExplanation record component
    • origin

      public String origin()
      Returns the value of the origin record component.
      Returns:
      the value of the origin record component
    • genres

      @NotNull public @NotNull List<String> genres()
      Returns the value of the genres record component.
      Returns:
      the value of the genres record component
    • upcomingEventIds

      @NotNull public @NotNull List<String> upcomingEventIds()
      Returns the value of the upcomingEventIds record component.
      Returns:
      the value of the upcomingEventIds record component
    • previousEventIds

      @NotNull public @NotNull List<String> previousEventIds()
      Returns the value of the previousEventIds record component.
      Returns:
      the value of the previousEventIds record component