Skip to content

Commit de685c4

Browse files
Karen AlabiKaren Alabi
authored andcommitted
feat: creates Clothing Item class file
1 parent c8b3b9d commit de685c4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

lesson_16/objects/objects_app/src/main/java/com/codedifferently/lesson16/wardrobecollection/ClothingItem.java

Whitespace-only changes.

lesson_16/objects/objects_app/src/main/java/com/codedifferently/lesson16/wardrobecollection/PersonalCloset.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public void organizeCloset() {
114114
itemList.add(item);
115115
}
116116

117-
// Mark closet as organized
117+
// closet is organized
118118
isOrganized = true;
119119
}
120120

@@ -136,14 +136,24 @@ public int getMaxCapacity() {
136136
return maxCapacity;
137137
}
138138

139+
public void setMaxCapacity() {
140+
this.maxCapacity = maxCapacity;
141+
}
142+
139143
public double getTotalValue() {
140144
return totalValue;
141145
}
142146

147+
public void setTotalValue() {
148+
this.totalValue = totalValue;
149+
}
150+
143151
public boolean isOrganized () {
144152
return isOrganized;
145153
}
146154

155+
public void set
156+
147157
public List<ClothingItem> getItems() {
148158
return new ArrayList<>(items);
149159
}

0 commit comments

Comments
 (0)