ewe.sys
Class DayOfYear

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

public class DayOfYear
extends Time

DayOfYear is a type of Time object which is only concerned with the day of a specified year. Essentially the difference between this and a Time object is that in comparing two DayOfYear objects, only the year, month and day will be compared. All other data will be ignored.


Field Summary
static String doyDefaultFormat
           
 
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
DayOfYear()
           
DayOfYear(int day, int month, int year)
           
 
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

doyDefaultFormat

public static String doyDefaultFormat
Constructor Detail

DayOfYear

public DayOfYear()

DayOfYear

public DayOfYear(int day,
                 int month,
                 int year)
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