Android Open Source - android-final-exam-stuff Student






From Project

Back to project page android-final-exam-stuff.

License

The source code is released under:

Apache License

If you think the Android project android-final-exam-stuff listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package tr.edu.iyte.ceng389.finalexamstuff;
//  ww w  .j  a  v a2 s. c  o m
public class Student
{
  public enum Departments
  {
    CENG, ME, MBG;
  }
  
  private long id;
  private String name;
  private int number;
  private Departments department;
  
  public Student(String name, int number, Departments department)
  {
    this(-1, name, number, department);
  }
  
  public Student(long id, String name, int number, Departments department)
  {
    setId(id);
    setName(name);
    setNumber(number);
    setDepartment(department);
  }
  
  public long getId() {
    return id;
  }
  
  public void setId(long id) {
    this.id = id;
  }
  
  /**
   * @return the name
   */
  public String getName() {
    return name;
  }
  /**
   * @param name the name to set
   */
  public void setName(String name) {
    this.name = name;
  }
  /**
   * @return the number
   */
  public int getNumber() {
    return number;
  }
  /**
   * @param number the number to set
   */
  public void setNumber(int number) {
    this.number = number;
  }
  /**
   * @return the department
   */
  public Departments getDepartment() {
    return department;
  }
  /**
   * @param department the department to set
   */
  public void setDepartment(Departments department) {
    this.department = department;
  }
}




Java Source Code List

tr.edu.iyte.ceng389.finalexamstuff.AddStudentActivity.java
tr.edu.iyte.ceng389.finalexamstuff.MainActivity.java
tr.edu.iyte.ceng389.finalexamstuff.StudentAdapter.java
tr.edu.iyte.ceng389.finalexamstuff.StudentDetailsActivity.java
tr.edu.iyte.ceng389.finalexamstuff.StudentDetailsFragment.java
tr.edu.iyte.ceng389.finalexamstuff.StudentListFragment.java
tr.edu.iyte.ceng389.finalexamstuff.StudentProvider.java
tr.edu.iyte.ceng389.finalexamstuff.Student.java