package com.msg.systems.dvdlibrary.javabeans;

import java.util.LinkedList;
import java.util.List;
import javax.ejb.Stateful;

/**
 *
 * @author sabaua
 */
@Stateful
public class DVDList {

    private final List<DVDItem> dvdList = new LinkedList<>();

    public void addDVD(String title, String year, String genre) {
        dvdList.add(new DVDItem(title, year, genre));
    }

    public void removeDVD(DVDItem dvd) {
        dvdList.remove(dvd);
    }

    public List<DVDItem> getList() {
        return dvdList;
    }

}
