/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureBean.java
ViewVC logotype

Contents of /android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureBean.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1021 - (show annotations) (download)
Mon Aug 30 13:59:54 2010 UTC (13 years, 8 months ago) by torben
File size: 536 byte(s)
Lookup the stationName in the fetcher and put it in the departureBean

That way we don't need db acccess on a cache hit and on a cache miss we saves one DB lookup operation
1 package dk.thoerup.traininfoservice.banedk;
2
3 import java.util.ArrayList;
4 import java.util.HashSet;
5 import java.util.List;
6 import java.util.Set;
7
8 public class DepartureBean {
9
10 String stationName;
11
12 Set<String> notifications = new HashSet<String>();
13 List<DepartureEntry> departureEntries = new ArrayList<DepartureEntry>();
14
15 public Set<String> getNotifications() {
16 return notifications;
17 }
18
19 public List<DepartureEntry> getEntries() {
20 return departureEntries;
21 }
22
23 public String getStationName() {
24 return stationName;
25 }
26
27 }

  ViewVC Help
Powered by ViewVC 1.1.20