com.quadrique.jbuildingblocks.core.time
Class JbbDateDifference

java.lang.Object
  extended by com.quadrique.jbuildingblocks.core.time.JbbDateDifference
All Implemented Interfaces:
Serializable, Comparable<JbbDateDifference>

public class JbbDateDifference
extends Object
implements Serializable, Comparable<JbbDateDifference>

A simple JAVA bean to retrieve information about the difference between two dates.

See Also:
Serialized Form

Field Summary
 int days
           
 int hours
           
 int milliSeconds
           
 int minutes
           
 int months
           
 int seconds
           
 int years
          constants
 
Constructor Summary
JbbDateDifference()
           
 
Method Summary
 int compareTo(JbbDateDifference diff)
           
 int getDays()
           
 int getHours()
           
 int getMilliSeconds()
           
 int getMinutes()
           
 int getMonths()
           
 int getSeconds()
           
static long getSerialVersionUID()
           
 int getYears()
           
 void setDays(int days)
           
 void setHours(int hours)
           
 void setMilliSeconds(int milliseconds)
           
 void setMinutes(int minutes)
           
 void setMonths(int months)
           
 void setSeconds(int seconds)
           
 void setYears(int years)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

years

public int years
constants


months

public int months

days

public int days

hours

public int hours

minutes

public int minutes

seconds

public int seconds

milliSeconds

public int milliSeconds
Constructor Detail

JbbDateDifference

public JbbDateDifference()
Method Detail

compareTo

public int compareTo(JbbDateDifference diff)
Specified by:
compareTo in interface Comparable<JbbDateDifference>

getYears

public int getYears()
Returns:
the years

setYears

public void setYears(int years)
Parameters:
years - the years to set

getMonths

public int getMonths()
Returns:
the months

setMonths

public void setMonths(int months)
Parameters:
months - the months to set

getDays

public int getDays()
Returns:
the days

setDays

public void setDays(int days)
Parameters:
days - the days to set

getHours

public int getHours()
Returns:
the hours

setHours

public void setHours(int hours)
Parameters:
hours - the hours to set

getMinutes

public int getMinutes()
Returns:
the minutes

setMinutes

public void setMinutes(int minutes)
Parameters:
minutes - the minutes to set

getSeconds

public int getSeconds()
Returns:
the seconds

setSeconds

public void setSeconds(int seconds)
Parameters:
seconds - the seconds to set

getMilliSeconds

public int getMilliSeconds()
Returns:
the milliseconds

setMilliSeconds

public void setMilliSeconds(int milliseconds)
Parameters:
milliseconds - the milliseconds to set

getSerialVersionUID

public static long getSerialVersionUID()
Returns:
the serialVersionUID

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2008 Quadrique Corporation. All Rights Reserved.