Back to project page ho.la.urv.
The source code is released under:
MIT License
If you think the Android project ho.la.urv 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 eu.robertboloc.holaurv.models; // w w w . j av a 2s .com public class Entry { public static final int FIRST_ENTRY = 0; public static final int FIRST_EXIT = 1; public static final int SECOND_ENTRY = 2; public static final int SECOND_EXIT = 3; String code; String hourRaw; String minuteRaw; public String getHourRaw() { return hourRaw; } public void setHourRaw(String hourRaw) { this.hourRaw = hourRaw; } public int getHour() { return Integer.parseInt(hourRaw); } public String getMinuteRaw() { return minuteRaw; } public void setMinuteRaw(String minuteRaw) { this.minuteRaw = minuteRaw; } public int getMinute() { return Integer.parseInt(minuteRaw); } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getDisplayHourAndMinute() { if (!hourRaw.isEmpty() && !minuteRaw.isEmpty()) { return hourRaw + ":" + minuteRaw; } return null; } }