-
Notifications
You must be signed in to change notification settings - Fork 0
/
EquipmentSet.java
59 lines (49 loc) · 1.4 KB
/
EquipmentSet.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import java.util.ArrayList;
public class EquipmentSet {
private boolean available;
private boolean undo;
private Member borrowMember;
private BorrowItems borrowItems;
private ArrayList<String> reservations;
private ArrayList<RequestItem> requestItemArrayList;
private String EqSetCode;
public EquipmentSet(String EqSetCode){
this.available = true;
this.reservations = new ArrayList<>();
this.EqSetCode = EqSetCode;
requestItemArrayList=new ArrayList<>();
}
public Member getBorrowMember() {
return borrowMember;
}
public String getEqSetCode() {
return EqSetCode;
}
public boolean isUndo() {
return undo;
}
public void setUndo(boolean undo) {
this.undo = undo;
}
public ArrayList<RequestItem> getRequestItemArrayList() {
return requestItemArrayList;
}
public void setBorrowMember(Member member){
this.borrowMember=member;
}
public boolean CheckAvailable(){
return available;
}
public String getAvailableName(){
if(borrowMember==null||undo){
return null;
}
return String.format("%s(%s)",EqSetCode,borrowMember.getId());
}
public BorrowItems getBorrowItems() {
return borrowItems;
}
public void setBorrowItems(BorrowItems borrowItems) {
this.borrowItems = borrowItems;
}
}