Class Month

Class Month

java.lang.Object
   |
   +----Month

public class Month
extends Object
Month is a generic object for keeping the month.

Variable Index

 o month
The month.
 o year
The year.

Constructor Index

 o Month(int, int)
Creates a new Month from the specified month and year.
 o Month(Day)
Creates a new Month object from the given Day
 o Month()
Creates a new, empty Month object.

Method Index

 o equals(Object)
Compares this Month to the specified Object.
 o hashCode()
Returns the hashing code for this month.
 o toString()
Returns a new String representing the month.

Variables

 o month
  public int month
The month.
 o year
  public int year
The year.

Constructors

 o Month
  public Month(int m,
               int y)
Creates a new Month from the specified month and year.
Parameters:
m - the month
y - the year
 o Month
  public Month(Day d)
Creates a new Month object from the given Day
Parameters:
d - the Day object to create the Month for
See Also:
Day
 o Month
  public Month()
Creates a new, empty Month object.

Methods

 o toString
  public String toString()
Returns a new String representing the month.
Overrides:
toString in class Object
 o hashCode
  public int hashCode()
Returns the hashing code for this month.
Overrides:
hashCode in class Object
See Also:
Hashtable
 o equals
  public boolean equals(Object o)
Compares this Month to the specified Object. Returns true if the Object is equal to this Month; that is, has the same month and year.
Parameters:
o - the object to compare this Month against.
Returns:
true if the Months are equal; false otherwise.
Overrides:
equals in class Object