// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.sps.data;

import java.util.List;

/**
 * A course class. Better documentation to be added later.
 */
public class Course {
    private String name;
    private String courseID;
    private String subject;
    private boolean isRequired;
    private List<Section> sections;

    public Course(String name, String courseID, String subject, boolean isRequired, List<Section> sections) {
        this.name = name;
        this.courseID = courseID;
        this.subject = subject;
        this.isRequired = isRequired;
        this.sections = sections;
    }

    public String getName() {
        return this.name;
    }

    public String getCourseID() {
        return this.courseID;
    }

    public String getSubject() {
        return this.subject;
    }

    public boolean getIsRequired() {
        return this.isRequired;
    }

    public boolean isIsRequired() {
        return this.isRequired;
    }

    public List<Section> getSections() {
        return this.sections;
    }

}
@@ -725,18 +725,16 @@
 ourse %7B%0A
-  
   privat
@@ -748,18 +748,16 @@
 g name;%0A
-  
   privat
@@ -775,18 +775,16 @@
 urseID;%0A
-  
   privat
@@ -799,24 +799,47 @@
  subject;%0A  
+private float credits;%0A
   private bo
@@ -856,18 +856,16 @@
 quired;%0A
-  
   privat
@@ -891,18 +891,16 @@
 tions;%0A%0A
-  
   public
@@ -952,16 +952,31 @@
 subject,
+ float credits,
  boolean
@@ -1010,28 +1010,24 @@
 sections) %7B%0A
-    
     this.nam
@@ -1036,28 +1036,24 @@
 = name;%0A    
-   
- 
 this.courseI
@@ -1066,20 +1066,16 @@
 urseID;%0A
-    
     this
@@ -1094,24 +1094,48 @@
 ubject;%0A    
+this.credits = credits;%0A
     this.isR
@@ -1160,20 +1160,16 @@
 ed;%0A    
-   
- 
 this.sec
@@ -1186,25 +1186,21 @@
 ctions;%0A
-  
   %7D%0A%0A
-  
   public
@@ -1215,36 +1215,32 @@
 getName() %7B%0A    
- 
-   
 return this.name
@@ -1241,25 +1241,21 @@
 s.name;%0A
-  
   %7D%0A%0A
-  
   public
@@ -1274,28 +1274,24 @@
 ourseID() %7B%0A
-    
     return t
@@ -1304,25 +1304,21 @@
 urseID;%0A
-  
   %7D%0A%0A
-  
   public
@@ -1336,36 +1336,32 @@
 Subject() %7B%0A    
- 
-   
 return this.subj
@@ -1365,25 +1365,21 @@
 ubject;%0A
-  
   %7D%0A%0A
-  
   public
@@ -1383,38 +1383,29 @@
 lic 
-boolean getIsRequired
+float getCredits
 () %7B%0A
-    
     
@@ -1416,39 +1416,32 @@
 rn this.
-isRequired;%0A  
+credits;%0A
   %7D%0A%0A  
- 
- 
 public b
@@ -1447,18 +1447,19 @@
 boolean 
-is
+get
 IsRequir
@@ -1461,28 +1461,24 @@
 equired() %7B%0A
-    
     return t
@@ -1495,23 +1495,19 @@
 ired;%0A  
- 
- 
 %7D%0A%0A
-  
   public
@@ -1537,20 +1537,16 @@
 ons() %7B%0A
-    
     retu
@@ -1565,14 +1565,11 @@
 ions;%0A  
-  %7D%0A
+%7D
 %0A%7D

Add credits field and fixed spacing according to style guide