/[projects]/android/MockLocation/src/dk/thoerup/mocklocation/LocationBean.java
ViewVC logotype

Annotation of /android/MockLocation/src/dk/thoerup/mocklocation/LocationBean.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 356 - (hide annotations) (download)
Tue Sep 29 18:25:58 2009 UTC (14 years, 8 months ago) by torben
File size: 699 byte(s)
Added mock location
1 torben 356 package dk.thoerup.mocklocation;
2    
3     class LocationBean {
4    
5     private String name;
6     private double latitude;
7     private double longitude;
8    
9    
10     public LocationBean(String nme, double lat, double lng) {
11     name = nme;
12     latitude = lat;
13     longitude = lng;
14     }
15    
16    
17     public String getName() {
18     return name;
19     }
20    
21    
22    
23     public void setName(String name) {
24     this.name = name;
25     }
26    
27    
28    
29     public double getLatitude() {
30     return latitude;
31     }
32    
33    
34    
35     public void setLatitude(double latitude) {
36     this.latitude = latitude;
37     }
38    
39    
40    
41     public double getLongitude() {
42     return longitude;
43     }
44    
45    
46    
47     public void setLongitude(double longitude) {
48     this.longitude = longitude;
49     }
50    
51    
52    
53     @Override
54     public String toString() {
55     return name;
56     }
57    
58    
59     }

  ViewVC Help
Powered by ViewVC 1.1.20