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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1021 - (hide annotations) (download)
Mon Aug 30 13:59:54 2010 UTC (13 years, 9 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 torben 978 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 torben 1021 String stationName;
11    
12 torben 978 Set<String> notifications = new HashSet<String>();
13     List<DepartureEntry> departureEntries = new ArrayList<DepartureEntry>();
14    
15 torben 979 public Set<String> getNotifications() {
16     return notifications;
17     }
18 torben 978
19 torben 979 public List<DepartureEntry> getEntries() {
20     return departureEntries;
21     }
22    
23 torben 1021 public String getStationName() {
24     return stationName;
25     }
26    
27 torben 978 }

  ViewVC Help
Powered by ViewVC 1.1.20