butler.ext.time
Class TimeOfDay
java.lang.Object
butler.ext.time.TimeOfDay
- All Implemented Interfaces:
- java.lang.Comparable
public class TimeOfDay
- extends java.lang.Object
- implements java.lang.Comparable
- Author:
- Fredrik Bertilsson
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TimeOfDay
public TimeOfDay(long time)
TimeOfDay
public TimeOfDay(int hours,
int minutes)
throws java.lang.Exception
- Throws:
java.lang.Exception
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getValue
public long getValue()
getHour
public int getHour()
throws java.lang.Exception
- Throws:
java.lang.Exception
getMinute
public int getMinute()
throws java.lang.Exception
- Throws:
java.lang.Exception
getDate
public java.util.Date getDate(java.util.Date date)
throws java.lang.Exception
- Throws:
java.lang.Exception
compareTo
public int compareTo(java.lang.Object other)
- Specified by:
compareTo
in interface java.lang.Comparable
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object