com.quadrique.jbuildingblocks.core.time
Class JbbDateDifference
java.lang.Object
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
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
JbbDateDifference
public JbbDateDifference()
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.