angry1980.audio.dao.TrackDAOInMemoryImpl Maven / Gradle / Ivy
package angry1980.audio.dao;
import angry1980.audio.model.Track;
import java.util.*;
import java.util.stream.Collectors;
public class TrackDAOInMemoryImpl implements TrackDAO{
private Map tracks;
public TrackDAOInMemoryImpl(){
this.tracks = new HashMap<>();
}
@Override
public Track tryToGet(long id) {
return tracks.get(id);
}
@Override
public Collection