Skip to content

Commit

Permalink
create a getter for 'color' #207
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaBurek committed Oct 20, 2020
1 parent 79ea4ae commit 375a0d1
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,17 @@ public void setWeightList(List<Weight> weightList) {

public static class Weight {
private final double weight;
private String color = null;
private final List<Criteria> criteriaList;

public Weight(double weight, String color, List<Criteria> criteriaList) {
public Weight(double weight, List<Criteria> criteriaList) {
this.weight = weight;
this.color = color;
this.criteriaList = criteriaList;
}

public double getWeight() {
return weight;
}

public String getColor() {
return color;
}

public List<Criteria> getCriteriaList() {
return criteriaList;
Expand Down

0 comments on commit 375a0d1

Please sign in to comment.