/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2017 Abhijit Parida <abhijitparida.me@gmail.com>
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package app.abhijit.iter.models;

import com.google.common.collect.ImmutableList;

public class Student {

    private final String mName;

    private final String mRegistrationNumber;

    private final boolean mSelected;

    private final ImmutableList<Subject> mSubjects;

    public Student(String name, String registrationNumber, boolean selected,
                   ImmutableList<Subject> subjects) {
        mName = name;
        mRegistrationNumber = registrationNumber;
        mSelected = selected;
        mSubjects = subjects;
    }

    public String getName() {
        return mName;
    }

    public String getRegistrationNumber() {
        return mRegistrationNumber;
    }

    public boolean isSelected() {
        return mSelected;
    }

    public ImmutableList<Subject> getSubjects() {
        return mSubjects;
    }
}

@@ -1208,802 +1208,178 @@
 s;%0A%0A
-import com.google.common.collect.ImmutableList;%0A%0Apublic class Student %7B%0A%0A    private final String mName;%0A%0A    private final String mRegistrationNumber;%0A%0A    private final boolean mSelected;%0A%0A    private final ImmutableList%3CSubject%3E mSubjects;%0A%0A    public Student(String name, String registrationNumber, boolean selected,%0A                   ImmutableList%3CSubject%3E subjects) %7B%0A        mName = name;%0A        mRegistrationNumber = registrationNumber;%0A        mSelected = selected;%0A        mSubjects = subjects;%0A    %7D%0A%0A    public String getName() %7B%0A        return mName;%0A    %7D%0A%0A    public String getRegistrationNumber() %7B%0A        return mRegistrationNumber;%0A    %7D%0A%0A    public boolean isSelected() %7B%0A        return mSelected;%0A    %7D%0A%0A    public ImmutableList%3CSubject%3E getSubjects() %7B%0A        return mS
+/**%0A * This class represents a student.%0A */%0Apublic class Student %7B%0A%0A    public String username;%0A    public String password;%0A    public String name;%0A    public Subject%5B%5D s
 ubje
@@ -1387,12 +1387,6 @@
 ts;%0A
-    %7D%0A
 %7D%0A

Refactor Student