This repository was archived by the owner on May 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCheckReturnDate.java
More file actions
86 lines (72 loc) · 1.39 KB
/
CheckReturnDate.java
File metadata and controls
86 lines (72 loc) · 1.39 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/**
* @author Dale Butt, 957450
*
* This file is to Check a return date of a resource
*
*/
import java.util.Date;
public class CheckReturnDate{
/*
*
* checkRequest
* calculateDueDate
* getDate
* getCopyID
* getLoanDuration
* copyAssign
* renewDueDate
*/
private int copyID;
private Date dueDate;// = new Date();
private Date returnedDate;
private Date todayDate;
public CheckReturnDate(int uniqueID, Date dueDate){
setDueDate(dueDate);
setCopyID(uniqueID);
}
public Boolean checkRequest(int copyID){ // No use of this at the moment
if (todayDate == returnedDate){
return true;
}
return false;
}
public void calculateDueDate(Date currentDay){ // No use of this at the moment
// what are we even calculating??
}
/**
* @return the copyID
*/
public int getCopyID() {
return copyID;
}
/**
* @param copyID the copyID to set
*/
private void setCopyID(int copyID) {
this.copyID = copyID;
}
/**
* @return the dueDate
*/
public Date getDueDate() {
return dueDate;
}
/**
* @param dueDate the dueDate to set
*/
private void setDueDate(Date dueDate) {
this.dueDate = dueDate;
}
/**
* @return the returnedDate
*/
public Date getReturnedDate() {
return returnedDate;
}
/**
* @param returnedDate the returnedDate to set
*/
private void setReturnedDate(Date returnedDate) {
this.returnedDate = returnedDate;
}
}