All Downloads are FREE. Search and download functionalities are using the official Maven repository.

angry1980.audio.dao.TrackDAODecorator Maven / Gradle / Ivy

There is a newer version: 0.0.10
Show newest version
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 findByCluster(long cluster) {
        return prototype.findByCluster(cluster);
    }

    @Override
    public Collection tryToGetAll() {
        return prototype.tryToGetAll();
    }

    @Override
    public Track tryToCreate(Track track) {
        return prototype.tryToCreate(track);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy