Android Open Source - GRTRealtime Route

From Project

Back to project page GRTRealtime.


The source code is released under:

MIT License

If you think the Android project GRTRealtime 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 com.lappdance.grtrealtime.model;
/*from w ww  .ja v a2 s.  c o  m*/


public class Route implements Comparable<Route> {
    int mId;

    String mShortName;

    String mColorValue;

    String mRouteName;

    String mSortKey;

    public int getId() {
        return mId;

    public String getShortName() {
        return mShortName;

    public int getColor() {
        return Color.parseColor("#" + mColorValue);

    public String getDisplayName() {
        return mRouteName;

    public int compareTo(Route another) {
        return mSortKey.compareTo(another.mSortKey);

Java Source Code List