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

com.moviejukebox.model.AwardEvent Maven / Gradle / Ivy

There is a newer version: 2.9
Show newest version
/*
 *      Copyright (c) 2004-2012 YAMJ Members
 *      http://code.google.com/p/moviejukebox/people/list
 *
 *      Web: http://code.google.com/p/moviejukebox/
 *
 *      This software is licensed under a Creative Commons License
 *      See this page: http://code.google.com/p/moviejukebox/wiki/License
 *
 *      For any reuse or distribution, you must make clear to others the
 *      license terms of this work.
 */
package com.moviejukebox.model;

import java.util.ArrayList;
import java.util.Collection;
/*
 * @author ilgizar
 */

public class AwardEvent {

    private String event = Movie.UNKNOWN;
    private Collection awards = new ArrayList();

    public String getName() {
        return event;
    }

    public void setName(String event) {
        this.event = event;
    }

    public Collection getAwards() {
        return this.awards;
    }

    public void setAwards(Collection awards) {
        if (awards != null) {
            this.awards = awards;
        }
    }

    public void addAward(Award award) {
        if (award != null) {
            this.awards.add(award);
        }
    }

    @Override
    public String toString() {
        return "AwardEvent{" + "event=" + event + ", awards=" + awards + '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy