Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#This is a test comment
#Test -nazli
#Test Shreya Comment
# This is a test comment

# Pull Requests

Expand Down
97 changes: 92 additions & 5 deletions caseStudy/services/src/main/java/pojo/Company.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,97 @@
* Look at resources/data/companyInfo.json
*/
public class Company {
private String symbol;
private String name;
private String headquartersCity;
private String headquartersStateOrCountry;
private int numberOfEmployees;
private String sector;
private String industry;
private Stock[] stocks;

// TODO - Think back to your modelling session
// Define the attributes of a Company based on the
// provided data in resources/data
public Company(String symbol, String name, String headquartersCity, String headquartersStateOrCountry, int numberOfEmployees, String sector, String industry, Stock[] stocks) {
this.symbol = symbol;
this.name = name;
this.headquartersCity = headquartersCity;
this.headquartersStateOrCountry = headquartersStateOrCountry;
this.numberOfEmployees = numberOfEmployees;
this.sector = sector;
this.industry = industry;
this.stocks = stocks;
}

//GETTERS
public String getSymbol() {
return symbol;
}

// TODO - add getter and setter methods for your attributes
}
public String getName() {
return name;
}

public String getHeadquartersCity() {
return headquartersCity;
}

public String getHeadquartersStateOrCountry() {
return headquartersStateOrCountry;
}

public int getNumberOfEmployees() {
return numberOfEmployees;
}

public String getSector() {
return sector;
}

public String getIndustry() {
return industry;
}

public Stock[] getStocks() {
return stocks;
}

//SETTERS
public String setSymbol(String symbol) {
this.symbol = symbol;
return symbol;
}

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

public String setHeadquartersCity(String headquartersCity) {
this.headquartersCity = headquartersCity;
return headquartersCity;
}

public String setHeadquartersStateOrCountry(String headquartersStateOrCountry) {
this.headquartersStateOrCountry = headquartersStateOrCountry;
return headquartersStateOrCountry;
}

public int setNumberOfEmployees(int numberOfEmployees) {
this.numberOfEmployees = numberOfEmployees;
return numberOfEmployees;
}

public String setSector(String sector) {
this.sector = sector;
return sector;
}

public String setIndustry(String industry) {
this.industry = industry;
return industry;
}

public Stock[] setStocks(Stock[] stocks) {
this.stocks = stocks;
return stocks;
}
}
Loading