Clover Coverage Report - Main Coverage Report
Coverage timestamp: ven dic 19 2014 16:47:52 EST
../../../../img/srcFileCovDistChart4.png 74% of files have more coverage
39   107   21   1,86
0   95   0,54   21
21     1  
1    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  BicycleStationInfo       Line # 6 39 21 36,7% 0.36666667
 
No Tests
 
1    package com.dreamcatcher.bicycle.vo;
2   
3    import android.os.Parcel;
4    import android.os.Parcelable;
5   
 
6    public class BicycleStationInfo implements Parcelable{
7    private int mId = 1;
8    private String mName = "";
9    private double mLatitude = 0.0;
10    private double mLongitude = 0.0;
11    private int mCapacity = 0;
12    private int mAvailable = 0;
13    private String mAddress = "";
14   
 
15  186 toggle public BicycleStationInfo(int id, String name, double latitude, double longitude, int capacity, int available, String address){
16  186 this.mId = id;
17  186 this.mName = name;
18  186 this.mLatitude = latitude;
19  186 this.mLongitude = longitude;
20  186 this.mCapacity = capacity;
21  186 this.mAvailable = available;
22  186 this.mAddress = address;
23    }
24   
 
25  1528 toggle public int getId() {
26  1528 return mId;
27    }
 
28  0 toggle public void setId(int mId) {
29  0 this.mId = mId;
30    }
 
31  1105 toggle public String getName() {
32  1105 return mName;
33    }
 
34  0 toggle public void setName(String mName) {
35  0 this.mName = mName;
36    }
37   
 
38  730 toggle public double getLatitude() {
39  730 return mLatitude;
40    }
 
41  0 toggle public void setLatitude(double mLatitude) {
42  0 this.mLatitude = mLatitude;
43    }
 
44  730 toggle public double getLongitude() {
45  730 return mLongitude;
46    }
 
47  0 toggle public void setLongitude(double mLongitude) {
48  0 this.mLongitude = mLongitude;
49    }
 
50  218 toggle public int getCapacity() {
51  218 return mCapacity;
52    }
 
53  0 toggle public void setCapacity(int mCapacity) {
54  0 this.mCapacity = mCapacity;
55    }
 
56  436 toggle public int getAvailable() {
57  436 return mAvailable;
58    }
 
59  0 toggle public void setAvailable(int mAvailable) {
60  0 this.mAvailable = mAvailable;
61    }
 
62  375 toggle public String getAddress() {
63  375 return mAddress;
64    }
 
65  0 toggle public void setAddress(String mAddress) {
66  0 this.mAddress = mAddress;
67    }
68   
 
69  0 toggle public int describeContents() {
70  0 return 0;
71    }
72   
 
73  0 toggle public void writeToParcel(Parcel dest, int flags) {
74  0 dest.writeInt(mId);
75  0 dest.writeString(mName);
76  0 dest.writeDouble(mLatitude);
77  0 dest.writeDouble(mLongitude);
78  0 dest.writeInt(mCapacity);
79  0 dest.writeInt(mAvailable);
80  0 dest.writeString(mAddress);
81    }
82   
83    public static final Parcelable.Creator<BicycleStationInfo> CREATOR = new Parcelable.Creator<BicycleStationInfo>() {
84   
 
85  0 toggle public BicycleStationInfo createFromParcel(Parcel source) {
86  0 return new BicycleStationInfo(source);
87    }
88   
 
89  0 toggle public BicycleStationInfo[] newArray(int size) {
90  0 return new BicycleStationInfo[size];
91    }
92    };
93   
 
94  0 toggle public BicycleStationInfo(Parcel in){
95  0 readFromParce(in);
96    }
97   
 
98  0 toggle private void readFromParce(Parcel in){
99  0 this.mId = in.readInt();
100  0 this.mName = in.readString();
101  0 this.mLatitude = in.readDouble();
102  0 this.mLongitude = in.readDouble();
103  0 this.mCapacity = in.readInt();
104  0 this.mAvailable = in.readInt();
105  0 this.mAddress = in.readString();
106    }
107    }