Back to project page BART.
The source code is released under:
GNU General Public License
If you think the Android project BART 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 pro.dbro.bart; /*from w ww . j av a 2 s. co m*/ import java.io.Serializable; public class StationSuggestion implements Serializable{ // After LOVE_THRESHOLD hits, this station becomes a "favorite" and gets special icon treatment public final static int LOVE_THRESHOLD = 5; public int hits; public String station; public String type; public StationSuggestion(String station, String type){ this.hits = 0; this.station = station; this.type = type; } public int addHit(){ this.hits += 1; return this.hits; } public String toString(){ return station; } public boolean equals(Object o){ if(o instanceof StationSuggestion){ if(((StationSuggestion) o).station.compareTo(this.station) == 0 && ((StationSuggestion)o).type.compareTo(this.type) == 0){ return true; } } return false; } }