|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectmonthlyCalendar.Date
public class Date
This class represents a date (day and number). We have implemented this class for you and you should not modify it.
| Constructor Summary | |
|---|---|
Date(Day day,
int dayNumber)
Initializes a date object. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares two date objects. |
Day |
getDay()
Returns the day value. |
int |
getNumber()
Returns the number associated with the date. |
int |
hashCode()
Returns a hash code for the object based on the string representation for the object. |
java.lang.String |
toString()
Returns a string representation for a date, with the day followed by the number. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Date(Day day,
int dayNumber)
day - dayNumber - | Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic Day getDay()
public int getNumber()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||