Package com.tagtraum.beatunes.inspection
Interface Issue<T extends Inspector>
-
public interface Issue<T extends Inspector>
An issue is a problem in the metadata of a collection of songs. E.g. the artist's name is spelled differently even though it's the same artist.
- Author:
- Hendrik Schreiber
- See Also:
Inspector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getDescription()
Description for this issue.T
getInspector()
TheInspector
that created this issue.Solution[]
getSolutions()
Return possible solutions for this issue.Collection<Long>
getSongIds()
Ids of songs having this issue.default Collection<AudioSong>
getSongs()
Song objects for the ids returned bygetSongIds()
.
-
-
-
Method Detail
-
getDescription
String getDescription()
Description for this issue.- Returns:
- description of the issue
-
getSongIds
Collection<Long> getSongIds()
Ids of songs having this issue.- Returns:
- songs this issue applies to
- See Also:
MediaLibrary.getSong(Long)
-
getSolutions
Solution[] getSolutions()
Return possible solutions for this issue. Note that the solutions returned have to be exactly the same each time this method is called. I.e. you can't create the array anew each time the method is called, but must cache it.- Returns:
- possible solutions for this issue
-
getInspector
T getInspector()
TheInspector
that created this issue.- Returns:
- the inspector that created this issue
-
getSongs
default Collection<AudioSong> getSongs()
Song objects for the ids returned bygetSongIds()
.- Returns:
- list of songs
-
-