videoautomat
Class LogEntryVideo
java.lang.Object
|
+--log.LogEntry
|
+--videoautomat.LogEntryVideo
- All Implemented Interfaces:
- Serializable
- public class LogEntryVideo
- extends log.LogEntry
This class implements a LogEntry that describes the rent or hand back of a video.
- See Also:
- Serialized Form
|
Constructor Summary |
LogEntryVideo(String user_ID,
String video,
boolean rented)
Constructs a new LogEntryVideo by the given params and the current date. |
LogEntryVideo
public LogEntryVideo(String user_ID,
String video,
boolean rented)
- Constructs a new
LogEntryVideo by the given params and the current date.
- Parameters:
user_ID - the ID of the relevant uservideo - the name of the relevant videorented - choose true if this entry should log a rent event, otherwise false
toString
public String toString()
- Overrides:
toString in class log.LogEntry
- Returns:
- a
String representing whether who has rented or who gave back which video. - See Also:
Object.toString()
getLogDate
public Date getLogDate()
- Overrides:
getLogDate in class log.LogEntry
- Returns:
- the date of logging.
- See Also:
LogEntry.getLogDate()