org.brickred.socialauth.util
Class BirthDate

java.lang.Object
  extended by org.brickred.socialauth.util.BirthDate
All Implemented Interfaces:
Serializable

public class BirthDate
extends Object
implements Serializable

Stores the BirthDate

Author:
tarunn@brickred.com
See Also:
Serialized Form

Constructor Summary
BirthDate()
           
 
Method Summary
 int getDay()
          Retrieves the birth day.
 int getMonth()
          Retrieves the birth month
 int getYear()
          Retrieves the birth year
 void setDay(int day)
          Updates the birth day
 void setMonth(int month)
          Updates the birth month
 void setYear(int year)
          Updates the birth year
 String toString()
          Returns the birth date in mm/dd/yyyy format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BirthDate

public BirthDate()
Method Detail

getDay

public int getDay()
Retrieves the birth day.

Returns:
the birth day

setDay

public void setDay(int day)
Updates the birth day

Parameters:
day - the birth day

getMonth

public int getMonth()
Retrieves the birth month

Returns:
the birth month

setMonth

public void setMonth(int month)
Updates the birth month

Parameters:
month - the birth month

getYear

public int getYear()
Retrieves the birth year

Returns:
the birth year

setYear

public void setYear(int year)
Updates the birth year

Parameters:
year - the birth year

toString

public String toString()
Returns the birth date in mm/dd/yyyy format

Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.