package com.google.sps.data;

import java.util.Set;

public final class VolunteeringOpportunity {
    private String name;
    private Set<String> skillsRequired;
    private int numSpotsLeft;
    private Set<User> volunteers;

    public VolunteeringOpportunity(String name, Set<String> requiredSkills, int numSpotsLeft, Set<User> volunteers) {
        this.name = name;
        this.skillsRequired = skillsRequired;
        this.numSpotsLeft = numSpotsLeft;
        this.volunteers = new HashSet<User>();
    }

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

    public void setName(String name){
        this.name = name;
    }

    public Set<String> getRequiredSkills(){
        return this.skillsRequired;
    }

    public void setRequiredSkills(Set<String> requiredSkills){
        this.skillsRequired = requiredSkills;
    }
    
    public void addRequiredSkill(String requiredSkill){
        this.skillsRequired.add(requiredSkill);
    }

    public int getNumSpotsLeft() {
        return this.numSpotsLeft;
    }

    public void setNumSpotsLeft(int numSpotsLeft) {
        this.numSpotsLeft = numSpotsLeft;
    }

    public Set<User> getVolunteers() {
        return this.volunteers;
    }

    public void addVolunteer(User volunteer){
        this.volunteers.add(volunteer);
    }
}
@@ -91,18 +91,16 @@
 unity %7B%0A
-  
   privat
@@ -114,18 +114,16 @@
 g name;%0A
-  
   privat
@@ -152,18 +152,16 @@
 quired;%0A
-  
   privat
@@ -182,18 +182,16 @@
 Left;%0A  
- 
- 
 private 
@@ -213,18 +213,16 @@
 teers;%0A%0A
-  
   public
@@ -329,28 +329,24 @@
 eers) %7B%0A    
-   
- 
 this.name = 
@@ -351,20 +351,16 @@
 = name;%0A
-    
     this
@@ -393,28 +393,24 @@
 quired;%0A    
-  
-  
 this.numSpot
@@ -431,20 +431,16 @@
 tsLeft;%0A
-    
     this
@@ -472,31 +472,26 @@
 %3CUser%3E();%0A  
-  %7D%0A%0A  
+%7D%0A
   public Str
@@ -502,36 +502,32 @@
 getName() %7B%0A    
-  
-  
 return this.name
@@ -524,33 +524,29 @@
  this.name;%0A
-  
   %7D%0A%0A
-  
   public voi
@@ -569,20 +569,16 @@
  name)%7B%0A
-    
     this
@@ -591,25 +591,21 @@
 = name;%0A
-  
   %7D%0A%0A
-  
   public
@@ -638,20 +638,16 @@
 ills()%7B%0A
-    
     retu
@@ -670,25 +670,21 @@
 quired;%0A
-  
   %7D%0A%0A
-  
   public
@@ -736,28 +736,24 @@
 kills)%7B%0A    
-   
- 
 this.skillsR
@@ -778,18 +778,16 @@
 Skills;%0A
-  
   %7D%0A    
@@ -787,18 +787,16 @@
  %7D%0A    %0A
-  
   public
@@ -841,28 +841,24 @@
 Skill)%7B%0A    
- 
-   
 this.skillsR
@@ -885,27 +885,23 @@
 Skill);%0A
-  
   %7D%0A%0A  
- 
- 
 public i
@@ -919,28 +919,24 @@
 otsLeft() %7B%0A
-    
     return t
@@ -947,39 +947,37 @@
 numSpotsLeft;%0A  
- 
- %7D%0A
+%7D
 %0A  
+%0A
   public void se
@@ -1006,28 +1006,24 @@
 potsLeft) %7B%0A
-    
     this.num
@@ -1048,25 +1048,21 @@
 tsLeft;%0A
-  
   %7D%0A%0A
-  
   public
@@ -1094,20 +1094,16 @@
 ) %7B%0A    
-  
-  
 return t
@@ -1122,17 +1122,13 @@
 rs;%0A
-  
   %7D%0A%0A
-  
   pu
@@ -1167,20 +1167,16 @@
 nteer)%7B%0A
-    
     this
@@ -1203,15 +1203,13 @@
 nteer);%0A
-  
   %7D%0A%7D

Fix spacing.