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

Constructor Index

 o DateLogEntry(String, String)
Creates a new date log entry initialised with the specified values.

Method Index

 o getDate()
Returns the date.
 o getID()
Returns the ID.
 o toString()
Returns a string representation of this object.

Constructors

 o 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

Methods

 o getID
 public String getID()
Returns the ID.

Returns:
the ID
 o getDate
 public String getDate()
Returns the date.

Returns:
the date
 o toString
 public String toString()
Returns a string representation of this object.

Returns:
a string representation of this object
Overrides:
toString in class Object