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.
package com.lemoulinstudio.bikefriend; //from w w w .j a v a 2 s . c o m import com.google.android.gms.maps.model.LatLng; 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); } }