Back to project page DVBViewerController.
The source code is released under:
Apache License
If you think the Android project DVBViewerController 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 de.bennir.DVBViewerController.channels; /*from w w w . j a va2s . c o m*/ import android.os.Parcel; import android.os.Parcelable; import de.bennir.DVBViewerController.epg.EPGInfo; import java.util.Comparator; public class DVBChannel implements Parcelable { public static final Parcelable.Creator<DVBChannel> CREATOR = new Parcelable.Creator<DVBChannel>() { public DVBChannel createFromParcel(Parcel in) { return new DVBChannel(in); } public DVBChannel[] newArray(int size) { return new DVBChannel[size]; } }; private static final String TAG = DVBChannel.class.toString(); public String name; public String favoriteId; public String channelId; public EPGInfo epgInfo = new EPGInfo(); private DVBChannel(Parcel in) { name = in.readString(); favoriteId = in.readString(); channelId = in.readString(); epgInfo = in.readParcelable(EPGInfo.class.getClassLoader()); } public DVBChannel() { } public int describeContents() { return 0; } public void writeToParcel(Parcel out, int flags) { out.writeString(name); out.writeString(favoriteId); out.writeString(channelId); out.writeParcelable(epgInfo, 0); } public static class DVBChannelNameComparator implements Comparator<DVBChannel> { @Override public int compare(DVBChannel dvbChannel, DVBChannel dvbChannel2) { return dvbChannel.name.compareTo(dvbChannel2.name); } } }