angry1980.audio.dao.TrackDAODecorator Maven / Gradle / Ivy
package angry1980.audio.dao;
import angry1980.audio.model.Track;
import java.util.Collection;
import java.util.Objects;
public class TrackDAODecorator implements TrackDAO{
private TrackDAO prototype;
public TrackDAODecorator(TrackDAO prototype) {
this.prototype = Objects.requireNonNull(prototype);
}
@Override
public Track tryToGet(long id) {
return prototype.tryToGet(id);
}
@Override
public Collection