Back to project page Go2-Rennes.
The source code is released under:
GNU General Public License
If you think the Android project Go2-Rennes 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 fr.gotorennes.domain; /*ww w . j a va2s . com*/ import java.util.Date; public class NextMetroDeparture { public Date nextForwardDeparture; public Date nextBackwardDeparture; public Date remoteDate; public int getMinutesBeforeForwardDeparture() { if (nextForwardDeparture == null) { return -1; } return (int) (nextForwardDeparture.getTime() - remoteDate.getTime()) / 60000; } public int getMinutesBeforeBackwardDeparture() { if (nextBackwardDeparture == null) { return -1; } return (int) (nextBackwardDeparture.getTime() - remoteDate.getTime()) / 60000; } }