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 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 a RymArtist record class.
      Parameters:
      originLoc - the value for the originLoc record component
      originDate - the value for the originDate record component
      currentLoc - the value for the currentLoc record component
      deathDate - the value for the deathDate record component
      deathLoc - the value for the deathLoc record component
      disbanded - the value for the disbanded record component
      memberOf - the value for the memberOf record component
      members - the value for the members record component
      aka - the value for the aka record component
      genres - the value for the genres record component
      manifest - the value for the manifest record component
      type - the value for the type record component
      localifyId - the value for the localifyId 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • originLoc

      public RymLocation originLoc()
      Returns the value of the originLoc record component.
      Returns:
      the value of the originLoc record component
    • originDate

      public String originDate()
      Returns the value of the originDate record component.
      Returns:
      the value of the originDate record component
    • currentLoc

      public RymLocation currentLoc()
      Returns the value of the currentLoc record component.
      Returns:
      the value of the currentLoc record component
    • deathDate

      public String deathDate()
      Returns the value of the deathDate record component.
      Returns:
      the value of the deathDate record component
    • deathLoc

      public RymLocation deathLoc()
      Returns the value of the deathLoc record component.
      Returns:
      the value of the deathLoc record component
    • disbanded

      public boolean disbanded()
      Returns the value of the disbanded record component.
      Returns:
      the value of the disbanded record component
    • memberOf

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

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

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

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

      @NotNull public @NotNull String manifest()
      Returns the value of the manifest record component.
      Returns:
      the value of the manifest record component
    • type

      @NotNull public @NotNull String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • localifyId

      @NotNull public @NotNull UUID localifyId()
      Returns the value of the localifyId record component.
      Returns:
      the value of the localifyId record component