Android Open Source - BART Station Suggestion






From Project

Back to project page BART.

License

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.

Java Source Code

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;
  }

}




Java Source Code List

pro.dbro.bart.BART.java
pro.dbro.bart.BartLinearLayout.java
pro.dbro.bart.BartRouteParser.java
pro.dbro.bart.BartStationEtdParser.java
pro.dbro.bart.DeviceLocation.java
pro.dbro.bart.LocalPersistence.java
pro.dbro.bart.MapActivity.java
pro.dbro.bart.RequestTask.java
pro.dbro.bart.StationSuggestion.java
pro.dbro.bart.TextPlusIconArrayAdapter.java
pro.dbro.bart.TheActivity.java
pro.dbro.bart.UsherService.java
pro.dbro.bart.ViewCountDownTimer.java
pro.dbro.bart.etdResponse.java
pro.dbro.bart.etd.java
pro.dbro.bart.leg.java
pro.dbro.bart.routeResponse.java
pro.dbro.bart.route.java