package org.skife.objectfilter;

import java.util.HashSet;
import java.util.Set;
import java.util.Collections;
import java.util.Arrays;

public class ClassRoom
{
    private Teacher teacher;
    private HashSet students;

    public ClassRoom(Teacher teacher, Student[] students)
    {
        this.teacher = teacher;
        this.students = new HashSet();
        this.students.addAll(Arrays.asList(students));
    }

    public ClassRoom(Teacher teacher)
    {
        this(teacher, new Student[] {});
    }

    public Teacher getTeacher()
    {
        return teacher;
    }

    public Set getStudents()
    {
        return Collections.unmodifiableSet(students);
    }

}
