-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathShow.java
80 lines (71 loc) · 1.55 KB
/
Show.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import java.io.Serializable;
import java.util.Calendar;
/**
* This class creates a Show for a client holding a show name, clientID, and
* start and end date for the show. creation
*
* @author Matt Carlson, Jamison Czech, Slava Makharovich, Prashant Shrestha
*/
public class Show implements Serializable{
private String showName;
private String clientID;
private Calendar startDate;
private Calendar endDate;
/**
* Creates a new Show
* @param showName
* @param clientID
* @param startDate
* @param endDate
*/
public Show(String showName, String clientID, Calendar startDate,
Calendar endDate) {
this.showName = showName;
this.clientID = clientID;
this.startDate = startDate;
this.endDate = endDate;
}
/**
* Getter for the name of the show
*
* @return a String of the show name
*/
public String getShowName() {
return showName;
}
/**
* Getter for client ID for the show
*
* @return a String of the client ID
*/
public String getClientID() {
return clientID;
}
/**
* Getter for the start date of a show
*
* @return a calendar of the start date
*/
public Calendar getStartDate() {
return startDate;
}
/**
* Getter for the end date of a show
*
* @return a calendar of the end date
*/
public Calendar getEndDate() {
return endDate;
}
/**
* String representing a Show
*
* @return
* a string representing a Show
*/
@Override
public String toString() {
return "Show: " + showName + " Client ID: " + clientID + " Start Date: "
+ startDate + " End Date " + endDate;
}
}