org.kuali.student.r2.common.dto
Class TimeOfDayInfo

java.lang.Object
  extended by org.kuali.student.r2.common.dto.TimeOfDayInfo
All Implemented Interfaces:
TimeOfDay

public class TimeOfDayInfo
extends Object
implements TimeOfDay


Constructor Summary
TimeOfDayInfo()
           
TimeOfDayInfo(TimeOfDay timeOfDay)
           
 
Method Summary
 boolean equals(Object obj)
          Compares two TimeOfDays for equality.
 Long getMilliSeconds()
          Offset from midnight in milliseconds, representing the time portion of a day
 boolean isAfter(TimeOfDay timeOfDay)
          Tests if this TimeOfDay is after the specified TimeOfDay.
 boolean isBefore(TimeOfDay timeOfDay)
          Tests if this TimeOfDay is before the specified TimeOfDay.
 void setMilliSeconds(Long milliSeconds)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeOfDayInfo

public TimeOfDayInfo()

TimeOfDayInfo

public TimeOfDayInfo(TimeOfDay timeOfDay)
Method Detail

getMilliSeconds

public Long getMilliSeconds()
Description copied from interface: TimeOfDay
Offset from midnight in milliseconds, representing the time portion of a day

Specified by:
getMilliSeconds in interface TimeOfDay

setMilliSeconds

public void setMilliSeconds(Long milliSeconds)

isAfter

public boolean isAfter(TimeOfDay timeOfDay)
Tests if this TimeOfDay is after the specified TimeOfDay.

Parameters:
timeOfDay - the specified TimeOfDay
Returns:
true if this TimeOfDay is after the specified TimeOfDay, false otherwise.

isBefore

public boolean isBefore(TimeOfDay timeOfDay)
Tests if this TimeOfDay is before the specified TimeOfDay.

Parameters:
timeOfDay - the specified TimeOfDay
Returns:
true if this TimeOfDay is before the specified TimeOfDay, false otherwise.

equals

public boolean equals(Object obj)
Compares two TimeOfDays for equality. The result is true if and only if the argument is not null and is a TimeOfDay object that represents the same point in time, to the millisecond, as this object.

Overrides:
equals in class Object
Parameters:
obj - the object to compare with
Returns:
true if the objects are the same; false otherwise.


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.