Package org.localify.data.queue.dto.rym
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 Summary
ConstructorsConstructorDescriptionRymJsonArtist(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 aRymJsonArtistrecord class. -
Method Summary
Modifier and TypeMethodDescriptionakas()Returns the value of theakasrecord component.dates()Returns the value of thedatesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefollowersrecord component.genres()Returns the value of thegenresrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thelocationsrecord component.members()Returns the value of themembersrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
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 aRymJsonArtistrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componenttype- the value for thetyperecord componentlocations- the value for thelocationsrecord componentdates- the value for thedatesrecord componentgenres- the value for thegenresrecord componentakas- the value for theakasrecord componentfollowers- the value for thefollowersrecord componentmembers- the value for themembersrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
locations
Returns the value of thelocationsrecord component.- Returns:
- the value of the
locationsrecord component
-
dates
Returns the value of thedatesrecord component.- Returns:
- the value of the
datesrecord component
-
genres
Returns the value of thegenresrecord component.- Returns:
- the value of the
genresrecord component
-
akas
Returns the value of theakasrecord component.- Returns:
- the value of the
akasrecord component
-
followers
Returns the value of thefollowersrecord component.- Returns:
- the value of the
followersrecord component
-
members
Returns the value of themembersrecord component.- Returns:
- the value of the
membersrecord component
-