+ /** Comparator that sorts artists by name. */
+ public static final Comparator<Artist> NAME_COMPARATOR = new Comparator<Artist>() {
+
+ @Override
+ public int compare(Artist leftArtist, Artist rightArtist) {
+ return leftArtist.getName().compareToIgnoreCase(rightArtist.getName());
+ }
+ };
+
+ /**
+ * Creates a new artist data container.
+ *
+ * @param id
+ * The ID of the artist
+ */