com.google.gwt.visualization.client
Class TimeOfDay

java.lang.Object
  extended by com.google.gwt.visualization.client.TimeOfDay
All Implemented Interfaces:
java.lang.Comparable<TimeOfDay>

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

Representation of time of day that may be used as a value in a data table (or data view).


Nested Class Summary
static class TimeOfDay.BadTimeException
          Exception indicating an invalid value being set for a time of day field.
 
Constructor Summary
TimeOfDay()
           
TimeOfDay(int hour, int minute, int second, int millisecond)
           
 
Method Summary
 int compareTo(TimeOfDay that)
           
 boolean equals(java.lang.Object obj)
           
 int getHour()
           
 int getMillisecond()
           
 int getMinute()
           
 int getSecond()
           
 int hashCode()
           
 void setHour(int hour)
           
 void setMillisecond(int millisecond)
           
 void setMinute(int minute)
           
 void setSecond(int second)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeOfDay

public TimeOfDay()

TimeOfDay

public TimeOfDay(int hour,
                 int minute,
                 int second,
                 int millisecond)
          throws TimeOfDay.BadTimeException
Throws:
TimeOfDay.BadTimeException
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getHour

public int getHour()

getMillisecond

public int getMillisecond()

getMinute

public int getMinute()

getSecond

public int getSecond()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(TimeOfDay that)
Specified by:
compareTo in interface java.lang.Comparable<TimeOfDay>

setHour

public void setHour(int hour)
             throws TimeOfDay.BadTimeException
Throws:
TimeOfDay.BadTimeException

setMillisecond

public void setMillisecond(int millisecond)
                    throws TimeOfDay.BadTimeException
Throws:
TimeOfDay.BadTimeException

setMinute

public void setMinute(int minute)
               throws TimeOfDay.BadTimeException
Throws:
TimeOfDay.BadTimeException

setSecond

public void setSecond(int second)
               throws TimeOfDay.BadTimeException
Throws:
TimeOfDay.BadTimeException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object