removed all checkstyle errors, updated sprint backlog
[staff/due1/sed-hs15-srs-purple.git] / src / main / java / ch / bfh / ti / srs / dataschema / Reservation.java
index 5433043..fd7da2b 100644 (file)
@@ -11,7 +11,7 @@ import java.util.UUID;
 \r
 import ch.bfh.ti.daterange.DateRange;\r
 \r
-public class Reservation implements Cloneable{\r
+public class Reservation implements Cloneable {\r
 \r
        private UUID id;\r
        private UUID groupId;\r
@@ -21,32 +21,32 @@ public class Reservation implements Cloneable{
        private String remark;\r
 \r
        public Reservation(UUID groupId, User user, Resource resource, DateRange DateRange, String remark) {\r
-//             // if (groupId == null)\r
-//             // throw new IllegalArgumentException("GroupID must not be null");\r
-//             if (user.getUserName() == null)\r
-//                     throw new IllegalArgumentException("User must not be null");\r
-//             if (resource.getId() == null)\r
-//                     throw new IllegalArgumentException("Resource must not be null");\r
-//             if (dateRange.isEmpty())\r
-//                     throw new IllegalArgumentException("DateRange must not be null");\r
+               // // if (groupId == null)\r
+               // // throw new IllegalArgumentException("GroupID must not be null");\r
+               // if (user.getUserName() == null)\r
+               // throw new IllegalArgumentException("User must not be null");\r
+               // if (resource.getId() == null)\r
+               // throw new IllegalArgumentException("Resource must not be null");\r
+               // if (dateRange.isEmpty())\r
+               // throw new IllegalArgumentException("DateRange must not be null");\r
 \r
                this.groupId = groupId;\r
                this.user = user;\r
                this.resource = resource;\r
                this.dateRange = DateRange;\r
                this.remark = remark;\r
-               \r
+\r
                this.id = UUID.randomUUID();\r
        }\r
 \r
        public UUID getId() {\r
                return id;\r
        }\r
-       \r
+\r
        public UUID getGroupId() {\r
                return groupId;\r
        }\r
-       \r
+\r
        public User getUser() {\r
                return user;\r
        }\r
@@ -62,11 +62,11 @@ public class Reservation implements Cloneable{
        public String getRemark() {\r
                return remark;\r
        }\r
-       \r
+\r
        public void setUser(User user) {\r
                this.user = user;\r
        }\r
\r
+\r
        public void setResource(Resource resource) {\r
                this.resource = resource;\r
        }\r
@@ -78,9 +78,9 @@ public class Reservation implements Cloneable{
        public void setRemark(String remark) {\r
                this.remark = remark;\r
        }\r
-       \r
+\r
        @Override\r
        public Reservation clone() throws CloneNotSupportedException {\r
-        return (Reservation)super.clone();\r
-    }\r
+               return (Reservation) super.clone();\r
+       }\r
 }\r