Skip to content
Snippets Groups Projects
CoursesOfStudy.java 884 B
Newer Older
package de.thdeg.grademanager.model;
Kevin Thaller's avatar
Kevin Thaller committed

import de.thdeg.grademanager.model.enumeration.BachelorDegree;

import java.util.List;

public class CoursesOfStudy
{
    private final int id;
    private final String name;
    private final BachelorDegree bachelorDegree;
    private final int duration;
    private final int fees;
    private final List<Course> courses;
    public CoursesOfStudy(int id, String name, BachelorDegree bachelorDegree, int duration, int fees, List<Course> courses, String fieldOfStudy)
    {
        this.id = id;
        this.name = name;
        this.bachelorDegree = bachelorDegree;
        this.duration = duration;
        this.fees = fees;
        this.courses = courses;
        this.fieldOfStudy = fieldOfStudy;
    }
Kevin Thaller's avatar
Kevin Thaller committed

    @Override
    public String toString() {
Dennis Toth's avatar
Dennis Toth committed
        return name + " [" + fieldOfStudy + "]";
Kevin Thaller's avatar
Kevin Thaller committed
    }