public class MonthDatumRange extends DatumRange implements java.io.Serializable
dr= MonthDatumRange( [ 1999, 01, 01, 00, 00, 00, 0 ], [ 1999, 02, 01, 00, 00, 00, 0 ] ) dr.toString() → "Jan 1999" dr= dr.next() dr.toString() → "Feb 1999" ; a normal datumRange would simply advance 31 days.
| Constructor and Description |
|---|
MonthDatumRange(int[] start,
int[] end)
create the MonthDatumRange with the decomposed times.
|
MonthDatumRange(int[] start,
int[] end,
Units u)
create the MonthDatumRange with the decomposed times.
|
| Modifier and Type | Method and Description |
|---|---|
DatumRange |
convertTo(Units u)
return this DatumRange in new units.
|
boolean |
equals(java.lang.Object o)
returns true if the two endpoints are equal.
|
int |
hashCode() |
DatumRange |
next()
returns the next DatumRange covering the space defined by Units.
|
DatumRange |
previous()
returns the previous DatumRange covering the space defined by Units.
|
compareTo, contains, contains, getUnits, include, intersection, intersects, max, middle, min, newDatumRange, newRange, newRange, newRange, rescale, toString, union, width, zoomOutpublic MonthDatumRange(int[] start,
int[] end,
Units u)
start - a seven element array of [ yr, mn, day, hr, mn, sec, nano ]end - a seven element array of [ yr, mn, day, hr, mn, sec, nano ]u - the units for storing the Datums.public MonthDatumRange(int[] start,
int[] end)
start - a seven element array of [ yr, mn, day, hr, mn, sec, nano ]end - a seven element array of [ yr, mn, day, hr, mn, sec, nano ]public DatumRange next()
DatumRangenext in class DatumRangepublic DatumRange previous()
DatumRangeprevious in class DatumRangepublic DatumRange convertTo(Units u)
DatumRangeconvertTo in class DatumRangeu - the new units.public boolean equals(java.lang.Object o)
DatumRangeequals in class DatumRangepublic int hashCode()
hashCode in class DatumRange