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.
package com.lappdance.grtrealtime.model; /*from w ww .ja v a2 s. c o m*/ import android.graphics.Color; import com.google.gson.annotations.SerializedName; public class Route implements Comparable<Route> { @SerializedName("RouteId") int mId; @SerializedName("ShortName") String mShortName; @SerializedName("Color") String mColorValue; @SerializedName("RouteNameHtml") String mRouteName; @SerializedName("OrderBy") String mSortKey; public int getId() { return mId; } public String getShortName() { return mShortName; } public int getColor() { return Color.parseColor("#" + mColorValue); } public String getDisplayName() { return mRouteName; } @Override public int compareTo(Route another) { return mSortKey.compareTo(another.mSortKey); } }