videoautomat
Class LogEntryVideo
java.lang.Object
LogEntry
videoautomat.LogEntryVideo
public class LogEntryVideo
- extends LogEntry
This class implements a LogEntry
that describes the rent or hand back of a video.
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()
- Returns:
- a
String
representing whether who has rented or who gave back which video. - See Also:
Object.toString()
getLogDate
public Date getLogDate()
- Returns:
- the date of logging.
- See Also:
log.LogEntry#getLogDate()