-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBorrowRecord.java
More file actions
65 lines (50 loc) · 1.61 KB
/
Copy pathBorrowRecord.java
File metadata and controls
65 lines (50 loc) · 1.61 KB
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
60
61
62
63
64
65
public class BorrowRecord {
private String memberId;
private String bookId;
private String bookTitle;
private String borrowDate;
private String dueDate;
public BorrowRecord(String memberId, String bookId, String bookTitle, String borrowDate, String dueDate) {
this.memberId = memberId;
this.bookId = bookId;
this.bookTitle = bookTitle;
this.borrowDate = borrowDate;
this.dueDate = dueDate;
}
// Getters and Setters
public String getMemberId() {
return memberId;
}
public void setMemberId(String memberId) {
this.memberId = memberId;
}
public String getBookId() {
return bookId;
}
public void setBookId(String bookId) {
this.bookId = bookId;
}
public String getBookTitle() {
return bookTitle;
}
public void setBookTitle(String bookTitle) {
this.bookTitle = bookTitle;
}
public String getBorrowDate() {
return borrowDate;
}
public void setBorrowDate(String borrowDate) {
this.borrowDate = borrowDate;
}
public String getDueDate() {
return dueDate;
}
public void setDueDate(String dueDate) {
this.dueDate = dueDate;
}
@Override
public String toString() {
return String.format("BorrowRecord{memberId='%s', bookId='%s', bookTitle='%s', borrowDate='%s', dueDate='%s'}",
memberId, bookId, bookTitle, borrowDate, dueDate);
}
}