Package org.localify.data.queue.dto.rym
Record Class RymArtist
java.lang.Object
java.lang.Record
org.localify.data.queue.dto.rym.RymArtist
- Record Components:
originLoc- The origin location of the artist.originDate- The origin date of the artist.currentLoc- The current location of the artist.deathDate- The death date of the artist.deathLoc- The death location of the artist.disbanded- Whether the artist has disbanded.memberOf- The group the artist is a member of.members- A list of members in the group.aka- A list of aliases for the artist.genres- A list of genres for the artist.manifest- The manifest for the artist.type- The type of the artist (e.g., "group", "person").localifyId- The Localify ID of the artist.
public record RymArtist(RymLocation originLoc, String originDate, RymLocation currentLoc, String deathDate, RymLocation deathLoc, boolean disbanded, String memberOf, List<String> members, List<String> aka, List<String> genres, @NotNull String manifest, @NotNull String type, @NotNull UUID localifyId)
extends Record
Represents an artist from Rate Your Music (RYM).
-
Constructor Summary
ConstructorsConstructorDescriptionRymArtist(RymLocation originLoc, String originDate, RymLocation currentLoc, String deathDate, RymLocation deathLoc, boolean disbanded, String memberOf, List<String> members, List<String> aka, List<String> genres, @NotNull String manifest, @NotNull String type, @NotNull UUID localifyId) Creates an instance of aRymArtistrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaka()Returns the value of theakarecord component.Returns the value of thecurrentLocrecord component.Returns the value of thedeathDaterecord component.deathLoc()Returns the value of thedeathLocrecord component.booleanReturns the value of thedisbandedrecord component.final booleanIndicates whether some other object is "equal to" this one.genres()Returns the value of thegenresrecord component.final inthashCode()Returns a hash code value for this object.@NotNull UUIDReturns the value of thelocalifyIdrecord component.@NotNull Stringmanifest()Returns the value of themanifestrecord component.memberOf()Returns the value of thememberOfrecord component.members()Returns the value of themembersrecord component.Returns the value of theoriginDaterecord component.Returns the value of theoriginLocrecord component.final StringtoString()Returns a string representation of this record class.@NotNull Stringtype()Returns the value of thetyperecord component.
-
Constructor Details
-
RymArtist
public RymArtist(RymLocation originLoc, String originDate, RymLocation currentLoc, String deathDate, RymLocation deathLoc, boolean disbanded, String memberOf, List<String> members, List<String> aka, List<String> genres, @NotNull @NotNull String manifest, @NotNull @NotNull String type, @NotNull @NotNull UUID localifyId) Creates an instance of aRymArtistrecord class.- Parameters:
originLoc- the value for theoriginLocrecord componentoriginDate- the value for theoriginDaterecord componentcurrentLoc- the value for thecurrentLocrecord componentdeathDate- the value for thedeathDaterecord componentdeathLoc- the value for thedeathLocrecord componentdisbanded- the value for thedisbandedrecord componentmemberOf- the value for thememberOfrecord componentmembers- the value for themembersrecord componentaka- the value for theakarecord componentgenres- the value for thegenresrecord componentmanifest- the value for themanifestrecord componenttype- the value for thetyperecord componentlocalifyId- the value for thelocalifyIdrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
originLoc
Returns the value of theoriginLocrecord component.- Returns:
- the value of the
originLocrecord component
-
originDate
Returns the value of theoriginDaterecord component.- Returns:
- the value of the
originDaterecord component
-
currentLoc
Returns the value of thecurrentLocrecord component.- Returns:
- the value of the
currentLocrecord component
-
deathDate
Returns the value of thedeathDaterecord component.- Returns:
- the value of the
deathDaterecord component
-
deathLoc
Returns the value of thedeathLocrecord component.- Returns:
- the value of the
deathLocrecord component
-
disbanded
public boolean disbanded()Returns the value of thedisbandedrecord component.- Returns:
- the value of the
disbandedrecord component
-
memberOf
Returns the value of thememberOfrecord component.- Returns:
- the value of the
memberOfrecord component
-
members
Returns the value of themembersrecord component.- Returns:
- the value of the
membersrecord component
-
aka
Returns the value of theakarecord component.- Returns:
- the value of the
akarecord component
-
genres
Returns the value of thegenresrecord component.- Returns:
- the value of the
genresrecord component
-
manifest
Returns the value of themanifestrecord component.- Returns:
- the value of the
manifestrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
localifyId
Returns the value of thelocalifyIdrecord component.- Returns:
- the value of the
localifyIdrecord component
-