Android Open Source - bike-friend Station

From Project

Back to project page bike-friend.


The source code is released under:

GNU General Public License

If you think the Android project bike-friend 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 com.lemoulinstudio.bikefriend;
//from   w  w  w  .j  a v a 2  s  . c  o  m
import java.util.Date;

 * @author Vincent Cantin
public abstract class Station {
  public abstract String getName(String languageCode);
  public abstract String getAddress(String languageCode);
  public abstract LatLng getLocation();
  public abstract int getNbBikes();
  public abstract int getNbEmptySlots();
  public abstract Date getDate();
  public abstract boolean isTestStation();

  public boolean isValid() {
    return (getDate() != null) &&
            (getLocation().latitude != 0.0f) &&
            (getLocation().longitude != 0.0f) &&
            (getNbBikes() != -1) &&
            (getNbEmptySlots() != -1);


Java Source Code List