ewe.sys
Class TimeOfDay

java.lang.Object
  extended byewe.data.DataObject
      extended byewe.sys.Time
          extended byewe.sys.TimeOfDay
All Implemented Interfaces:
Comparable, Copyable, DataUnit, Stringable, Textable, Value

public class TimeOfDay
extends Time

TimeOfDay is a type of Time object which is only concerned with the time of an unspecified day. Essentially the difference between this and a Time object is that in comparing two TimeOfDay objects, only the hours, minutes, seconds, milliseconds will be compared. The year, month and day will be ignored.


Field Summary
static String todDefaultFormat
           
 
Fields inherited from class ewe.sys.Time
_fields, day, DAY, dayOfWeek, defaultFormat, epoch, format, hour, HOUR, millis, minute, MINUTE, month, MONTH, second, SECOND, year, YEAR
 
Constructor Summary
TimeOfDay()
           
TimeOfDay(int hour, int minute, int second)
           
 
Method Summary
 int compareTo(Object other)
          Compare this object with another.
 String getDefaultFormat()
           
 
Methods inherited from class ewe.sys.Time
after, before, compareEncodedTimes, convertSystemTime, dateDifference, difference, equals, format, fromString, fromString, fromString, getEncodedTime, getFormat, getText, getTime, hashCode, indexOfDayInWeek, isLeapYear, isValid, numberOfDays, parse, parse, roundTo, setEncodedTime, setFormat, setText, setTime, setToCurrentTime, toString, toString, toString, update
 
Methods inherited from class ewe.data.DataObject
_getSetField, appendAllFields, copied, copyFrom, getCopy, getDeclaredField, getDeclaredFieldValue, getDeclaredFieldValue, getFieldList, getFieldList, getMyFieldList, getNew
 
Methods inherited from class java.lang.Object
clone, finalize, getClass
 

Field Detail

todDefaultFormat

public static String todDefaultFormat
Constructor Detail

TimeOfDay

public TimeOfDay()

TimeOfDay

public TimeOfDay(int hour,
                 int minute,
                 int second)
Method Detail

getDefaultFormat

public String getDefaultFormat()
Overrides:
getDefaultFormat in class Time

compareTo

public int compareTo(Object other)
Description copied from interface: Comparable
Compare this object with another. It should return: less than 0 if this object is considered LESS than the "other" object; greater than 0 if this object is considered GREATER than the "other" object; 0 if this object is considered EQUAL to the "other" object. (i.e. it is an implicit subtraction).

Specified by:
compareTo in interface Comparable
Overrides:
compareTo in class Time