Record Class RymJsonArtist

java.lang.Object
java.lang.Record
org.localify.data.queue.dto.rym.RymJsonArtist
Record Components:
id - The ID of the artist.
name - The name of the artist.
type - The type of artist (e.g., "group", "person").
locations - A list of locations associated with the artist.
dates - A list of dates associated with the artist.
genres - A list of genres for the artist.
akas - A list of aliases for the artist.
followers - The number of followers for the artist.
members - A list of members in the group.

public record RymJsonArtist(UUID id, String name, String type, List<RymJsonLocation> locations, List<RymJsonDate> dates, List<String> genres, List<String> akas, String followers, List<String> members) extends Record
Represents an artist from a Rate Your Music (RYM) JSON file.
  • Constructor Details

    • RymJsonArtist

      public RymJsonArtist(UUID id, String name, String type, List<RymJsonLocation> locations, List<RymJsonDate> dates, List<String> genres, List<String> akas, String followers, List<String> members)
      Creates an instance of a RymJsonArtist record class.
      Parameters:
      id - the value for the id record component
      name - the value for the name record component
      type - the value for the type record component
      locations - the value for the locations record component
      dates - the value for the dates record component
      genres - the value for the genres record component
      akas - the value for the akas record component
      followers - the value for the followers record component
      members - the value for the members 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.
    • id

      public UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • locations

      public List<RymJsonLocation> locations()
      Returns the value of the locations record component.
      Returns:
      the value of the locations record component
    • dates

      public List<RymJsonDate> dates()
      Returns the value of the dates record component.
      Returns:
      the value of the dates record component
    • genres

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

      public List<String> akas()
      Returns the value of the akas record component.
      Returns:
      the value of the akas record component
    • followers

      public String followers()
      Returns the value of the followers record component.
      Returns:
      the value of the followers record component
    • members

      public List<String> members()
      Returns the value of the members record component.
      Returns:
      the value of the members record component