Class DateLogEntry
java.lang.Object
|
+----DateLogEntry
- public class DateLogEntry
- extends Object
This is a simple class that can work as a log entry in a log of dates.
It contains an ID and a date identifier, both stored as strings.
- Author:
- Vegard Brox
-
DateLogEntry(String, String)
- Creates a new date log entry initialised with the specified values.
-
getDate()
- Returns the date.
-
getID()
- Returns the ID.
-
toString()
- Returns a string representation of this object.
DateLogEntry
public DateLogEntry(String id,
String date)
- Creates a new date log entry initialised with the specified values.
- Parameters:
- id - The ID that owns this date
getID
public String getID()
- Returns the ID.
- Returns:
- the ID
getDate
public String getDate()
- Returns the date.
- Returns:
- the date
toString
public String toString()
- Returns a string representation of this object.
- Returns:
- a string representation of this object
- Overrides:
- toString in class Object