*/
public class DataManager {
+ @SuppressWarnings("synthetic-access")
private final ObjectCreator<Artist> artistCreator = new ArtistCreator();
+ @SuppressWarnings("synthetic-access")
private final ObjectCreator<Group> groupCreator = new GroupCreator();
+ @SuppressWarnings("synthetic-access")
private final ObjectCreator<Track> trackCreator = new TrackCreator();
+ @SuppressWarnings("synthetic-access")
private final ObjectCreator<Style> styleCreator = new StyleCreator();
private final Database database;
}
@Override
+ @SuppressWarnings("unchecked")
public List<Artist> getArtists() {
return getValue("artists", List.class).get();
}
}
@Override
+ @SuppressWarnings("unchecked")
public Collection<Style> getStyles() {
return getValue("styles", Collection.class).get();
}