import java.io.Serializable;

/**
 *
 * Persin
 */
public class Blu_ray implements Serializable {
    
    private String title;
    private String director;
    private int runtime; 
    
    /**
     * Creates a new instance of Blu_ray
     */
    public Blu_ray() {
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public int getRuntime() {
        return runtime;
    }

    public void setRuntime(int runtime) {
        this.runtime = runtime;
    }
    
    //Overriding toString to be able to print out the object in a readable way
    //when it is later read from the file.
    public String toString() {
        
        StringBuffer buffer = new StringBuffer();
        buffer.append(title);
        buffer.append("\n");
        buffer.append(director);
        buffer.append("\n");
        buffer.append(runtime);
        buffer.append("\n");
        
         return buffer.toString();
    }
    
    
}
