Structure the code to respect MVC design pattern.
[Persons_Comparator.git] / src / WeightView.java
diff --git a/src/WeightView.java b/src/WeightView.java
new file mode 100644 (file)
index 0000000..e6b69c5
--- /dev/null
@@ -0,0 +1,15 @@
+public class WeightView {
+    private Weight weightObj;
+
+    WeightView(Weight weightObj) {
+        setWeightObj(weightObj);
+    }
+
+    public Weight getWeightObj() {
+        return weightObj;
+    }
+
+    public void setWeightObj(Weight weightObj) {
+        this.weightObj = weightObj;
+    }
+}