-
Notifications
You must be signed in to change notification settings - Fork 0
/
ILibrary.java
54 lines (45 loc) · 1.59 KB
/
ILibrary.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
package wmich.edu.cs1120.LA3_Lee;
import java.util.GregorianCalendar;
public interface ILibrary {
/**
* Sets the boolean value checkedOut to true, and
* initializes the dateChecked out attribute (a
* GregorianCalendar object).
*/
public void checkOut();
/**
* Generates a string with the details of the library item
* whose call number has been input by the user (see example output)
* and returns that string.
* If the user wants to check out the library item, the string to be
* returned also includes information that the item has been checked out,
* the date it was checked out, and the due date by which the item should be returned.
* @return A string with details of this library item.
*/
public String toString();
/**
* Returns the call number of this object.
* @return the callNumber
*/
public String getCallNumber();
/**
* Returns true or false depending on if this item has been checked out.
* @return the boolean value for isCheckedOut
*/
public boolean isCheckedOut();
/**
* Returns the date this item was checked out.
* @return the dateCheckedOut
*/
public GregorianCalendar getDateCheckedOut();
/**
* Returns the date this item is due to be returned.
* @return the dateDue
*/
public GregorianCalendar getDateDue();
/**
* Sets the dateDue to the parameter received.
* @param dateDue the dateDue to set
*/
public void setDateDue(GregorianCalendar dateDue);
} // End of ILibrary interface