ewe.sys
Class DayOfYear
java.lang.Object
ewe.data.DataObject
ewe.sys.Time
ewe.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.
| 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 |
| 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 |
doyDefaultFormat
public static String doyDefaultFormat
DayOfYear
public DayOfYear()
DayOfYear
public DayOfYear(int day,
int month,
int year)
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