Package org.localify.artist.jpa
Class ArtistSimilarity
java.lang.Object
org.localify.artist.jpa.ArtistSimilarity
Represents the similarity between two artists.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the composite key for the ArtistSimilarity entity. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for JPA.ArtistSimilarity(Artist seedArtist, Artist similarArtist) Constructs a new ArtistSimilarity. -
Method Summary
Modifier and TypeMethodDescriptionGets the creation timestamp.getKey()Gets the composite primary key.Gets the Last.fm similarity score.getScore()Gets the similarity score.Gets the seed artist.Gets the similar artist.Gets the Spotify rank of the similar artist in relation to the seed artist.Gets the update timestamp.setCreatedAt(Instant createdAt) Sets the creation timestamp.voidSets the composite primary key.voidsetLastfmScore(Double lastfmScore) Sets the Last.fm similarity score.Sets the similarity score.setSeedArtist(Artist seedArtist) Sets the seed artist.setSimilarArtist(Artist similarArtist) Sets the similar artist.voidsetSpotifyRank(Integer spotifyRank) Sets the Spotify rank of the similar artist in relation to the seed artist.setUpdatedAt(Instant updatedAt) Sets the update timestamp.toString()
-
Constructor Details
-
ArtistSimilarity
protected ArtistSimilarity()Default constructor for JPA. -
ArtistSimilarity
Constructs a new ArtistSimilarity.- Parameters:
seedArtist- The seed artist.similarArtist- The similar artist.
-
-
Method Details
-
getSpotifyRank
Gets the Spotify rank of the similar artist in relation to the seed artist.- Returns:
- The Spotify rank.
-
setSpotifyRank
Sets the Spotify rank of the similar artist in relation to the seed artist.- Parameters:
spotifyRank- The Spotify rank.
-
getLastfmScore
Gets the Last.fm similarity score.- Returns:
- The Last.fm score.
-
setLastfmScore
Sets the Last.fm similarity score.- Parameters:
lastfmScore- The Last.fm score.
-
getKey
Gets the composite primary key.- Returns:
- The key.
-
setKey
Sets the composite primary key.- Parameters:
key- The key.
-
getSeedArtist
Gets the seed artist.- Returns:
- The seed artist.
-
setSeedArtist
Sets the seed artist.- Parameters:
seedArtist- The seed artist.- Returns:
- This ArtistSimilarity instance.
-
getSimilarArtist
Gets the similar artist.- Returns:
- The similar artist.
-
setSimilarArtist
Sets the similar artist.- Parameters:
similarArtist- The similar artist.- Returns:
- This ArtistSimilarity instance.
-
getScore
Gets the similarity score.- Returns:
- The score.
-
setScore
Sets the similarity score.- Parameters:
score- The score.- Returns:
- This ArtistSimilarity instance.
-
getCreatedAt
Gets the creation timestamp.- Returns:
- The creation timestamp.
-
setCreatedAt
Sets the creation timestamp.- Parameters:
createdAt- The creation timestamp.- Returns:
- This ArtistSimilarity instance.
-
getUpdatedAt
Gets the update timestamp.- Returns:
- The update timestamp.
-
setUpdatedAt
Sets the update timestamp.- Parameters:
updatedAt- The update timestamp.- Returns:
- This ArtistSimilarity instance.
-
toString
-