Back to project page Teracast-Android.
The source code is released under:
Apache License
If you think the Android project Teracast-Android 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.davidtpate.teracast.model; //from w w w . j a va 2 s. c o m import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; import java.util.Date; import java.util.HashMap; import java.util.Map; import java.util.Set; public class Audio implements Parcelable { public static final Parcelable.Creator<Audio> CREATOR = new Parcelable.Creator<Audio>() { public Audio createFromParcel(Parcel in) { return new Audio(in); } public Audio[] newArray(int size) { return new Audio[size]; } }; String url; String type; private Audio(Parcel in) { url = in.readString(); type = in.readString(); } public int describeContents() { return 0; } public void writeToParcel(Parcel out, int flags) { out.writeString(url); out.writeString(type); } @Override public String toString() { return "Audio{" + "url='" + url + '\'' + ", type='" + type + '\'' + '}'; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Audio audio = (Audio) o; if (type != null ? !type.equals(audio.type) : audio.type != null) { return false; } if (url != null ? !url.equals(audio.url) : audio.url != null) { return false; } return true; } @Override public int hashCode() { int result = url != null ? url.hashCode() : 0; result = 31 * result + (type != null ? type.hashCode() : 0); return result; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getType() { return type; } public void setType(String type) { this.type = type; } }