|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.util.Range<java.util.Date>
org.geotools.util.DateRange
public class DateRange
A range of dates.
Constructor Summary | |
---|---|
DateRange(java.util.Date startTime,
boolean isMinIncluded,
java.util.Date endTime,
boolean isMaxIncluded)
Creates a new date range for the given dates. |
|
DateRange(java.util.Date startTime,
java.util.Date endTime)
Creates a new date range for the given dates. |
|
DateRange(MeasurementRange<?> range,
java.util.Date origin)
Creates a date range from the specified measurement range. |
Method Summary | |
---|---|
java.util.Date |
getMaxValue()
Returns the end time. |
java.util.Date |
getMinValue()
Returns the start time. |
Methods inherited from class org.geotools.util.Range |
---|
contains, contains, equals, getElementClass, hashCode, intersect, intersects, isEmpty, isMaxIncluded, isMinIncluded, subtract, toString, union |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DateRange(java.util.Date startTime, java.util.Date endTime)
startTime
- The start time (inclusive), or null
if none.endTime
- The end time (inclusive), or null
if none.public DateRange(java.util.Date startTime, boolean isMinIncluded, java.util.Date endTime, boolean isMaxIncluded)
startTime
- The start time, or null
if none.isMinIncluded
- true
if the start time is inclusive.endTime
- The end time, or null
if none.isMaxIncluded
- true
if the end time is inclusive.public DateRange(MeasurementRange<?> range, java.util.Date origin) throws javax.measure.converter.ConversionException
range
- The range to convert.origin
- The date to use as the origin.
javax.measure.converter.ConversionException
- if the given range doesn't have a
unit compatible with milliseconds.Method Detail |
---|
public java.util.Date getMinValue()
getMinValue
in class Range<java.util.Date>
Range.getMinValue()
public java.util.Date getMaxValue()
getMaxValue
in class Range<java.util.Date>
Range.getMaxValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |