Android Open Source - RiceCourses Course






From Project

Back to project page RiceCourses.

License

The source code is released under:

MIT License

If you think the Android project RiceCourses 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 info.kevinlin.ricecourses;
//from www. ja  v  a 2 s  .  co m
/**
 * Created by Kevin Lin on 7/28/2014.
 */
public class Course implements Comparable<Course>{

    private String courseNumber;
    private String courseCode;
    private String courseLength;
    private String courseTitle;
    private String courseInstructor;
    private String courseTime;
    private String credits;

    public Course(String courseNumber, String courseCode, String courseLength, String courseTitle, String courseInstructor, String courseTime, String credits) {
        this.courseNumber = courseNumber;
        this.courseCode = courseCode;
        this.courseLength = courseLength;
        this.courseTitle = courseTitle;
        this.courseInstructor = courseInstructor;
        this.courseTime = courseTime;
        this.credits = credits;
    }

    public String getCourseNumber() {
        return courseNumber;
    }

    public String getCourseCode() {
        return courseCode;
    }

    public String getCourseLength() {
        return courseLength;
    }

    public String getCourseTitle() {
        return courseTitle;
    }

    public String getCourseInstructor() {
        return courseInstructor;
    }

    public String getCourseTime() {
        return courseTime;
    }

    public String getCredits() {
        return credits;
    }

    public String toString() {
        return getCourseTitle();
    }

    public int compareTo(Course c) {
        return getCourseTitle().compareTo(c.getCourseTitle());
    }

}




Java Source Code List

info.kevinlin.ricecourses.ApplicationTest.java
info.kevinlin.ricecourses.CourseDetails.java
info.kevinlin.ricecourses.CourseList.java
info.kevinlin.ricecourses.Course.java
info.kevinlin.ricecourses.MainActivity.java
info.kevinlin.ricecourses.TabsPagerAdapter.java
info.kevinlin.ricecourses.detailsTab.java
info.kevinlin.ricecourses.webpageTab.java