Merge branch 'master' of https://xp-dev.com/git/RRRRHHHH_Code
[RRRRHHHH_Code] / ruralHouses / src / domain / HouseFeatures.java
index 2327608..52502cb 100644 (file)
@@ -1,7 +1,13 @@
 package domain;
 
-public class HouseFeatures {
+import java.io.Serializable;
 
+public class HouseFeatures implements Serializable {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 1L;
        private int nRooms;
        private int nKitchens;
        private int nBaths;
@@ -11,51 +17,40 @@ public class HouseFeatures {
        public HouseFeatures(int nRooms, int nKitchens, int nBaths, int nLivings,
                        int nParkings) {
                super();
-               this.setnRooms(nRooms);
-               this.setnKitchens(nKitchens);
-               this.setnBaths(nBaths);
-               this.setnLivings(nLivings);
-               this.setnParkings(nParkings);
+               this.nRooms = nRooms;
+               this.nKitchens = nKitchens;
+               this.nBaths = nBaths;
+               this.nLivings = nLivings;
+               this.nParkings = nParkings;
        }
 
        public int getnRooms() {
                return nRooms;
        }
 
-       public void setnRooms(int nRooms) {
-               this.nRooms = nRooms;
-       }
+
 
        public int getnKitchens() {
                return nKitchens;
        }
 
-       public void setnKitchens(int nKitchens) {
-               this.nKitchens = nKitchens;
-       }
+
 
        public int getnBaths() {
                return nBaths;
        }
 
-       public void setnBaths(int nBaths) {
-               this.nBaths = nBaths;
-       }
+
 
        public int getnLivings() {
                return nLivings;
        }
 
-       public void setnLivings(int nLivings) {
-               this.nLivings = nLivings;
-       }
+
 
        public int getnParkings() {
                return nParkings;
        }
 
-       public void setnParkings(int nParkings) {
-               this.nParkings = nParkings;
-       }
 
 }