Back to project page saostar.
The source code is released under:
Apache License
If you think the Android project saostar 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 net.azyobuzi.azyotter.saostar.timeline_data; //from ww w.j a va2 s. co m import java.io.Serializable; public class TimelineItemId implements Serializable { private static final long serialVersionUID = 806384774052492242L; public static final int TYPE_TWEET = 0; public static final int TYPE_DIRECT_MESSAGE = 1; public static final int TYPE_USER_STREAM_EVENT = 2; public TimelineItemId() { } public TimelineItemId(int type, long id) { this.type = type; this.id = id; } public int type; public long id; @Override public boolean equals(Object other) { if (other == null || !(other instanceof TimelineItemId)) return false; TimelineItemId x = (TimelineItemId)other; return type == x.type && id == x.id; } @Override public int hashCode() { return String.valueOf(id).hashCode(); } }