edu.jhu.cs.oose.group3.intelligentbook.model
Class BirthdayContactItem
java.lang.Object
edu.jhu.cs.oose.group3.intelligentbook.model.ContactItem
edu.jhu.cs.oose.group3.intelligentbook.model.SingularContactItem
edu.jhu.cs.oose.group3.intelligentbook.model.BirthdayContactItem
- All Implemented Interfaces:
- java.lang.Comparable<ContactItem>
public class BirthdayContactItem
- extends SingularContactItem
A birthday
Field Summary |
private java.util.Date |
date
|
Method Summary |
java.lang.String |
getContents()
Get the contents as a string |
java.util.Date |
getDate()
|
void |
setContents(java.lang.String s)
Set the birthday (given a string) |
void |
setDate(java.util.Date date)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
date
private java.util.Date date
BirthdayContactItem
public BirthdayContactItem()
BirthdayContactItem
public BirthdayContactItem(java.lang.String contents)
setContents
public void setContents(java.lang.String s)
- Set the birthday (given a string)
- Overrides:
setContents
in class ContactItem
- Parameters:
s
- the string to parse to set the birthday
getContents
public java.lang.String getContents()
- Get the contents as a string
- Overrides:
getContents
in class ContactItem
- Returns:
- a string representation of the date
getDate
public java.util.Date getDate()
- Returns:
- the date
setDate
public void setDate(java.util.Date date)
- Parameters:
date
- the date to set