butler.ext.time
Class TimeOfDay

java.lang.Object
  extended by butler.ext.time.TimeOfDay
All Implemented Interfaces:
java.lang.Comparable

public class TimeOfDay
extends java.lang.Object
implements java.lang.Comparable

Author:
Fredrik Bertilsson

Constructor Summary
TimeOfDay(int hours, int minutes)
           
TimeOfDay(long time)
           
 
Method Summary
 int compareTo(java.lang.Object other)
           
 boolean equals(java.lang.Object other)
           
 java.util.Date getDate(java.util.Date date)
           
 int getHour()
           
 int getMinute()
           
 long getValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeOfDay

public TimeOfDay(long time)

TimeOfDay

public TimeOfDay(int hours,
                 int minutes)
          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

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