public class DateRange extends Range<Date>
Constructor and Description |
---|
DateRange(Date startTime,
boolean isMinIncluded,
Date endTime,
boolean isMaxIncluded)
Creates a new date range for the given dates.
|
DateRange(Date startTime,
Date endTime)
Creates a new date range for the given dates.
|
DateRange(MeasurementRange<?> range,
Date origin)
Creates a date range from the specified measurement range.
|
Modifier and Type | Method and Description |
---|---|
Date |
getMaxValue()
Returns the end time.
|
Date |
getMinValue()
Returns the start time.
|
contains, contains, equals, getElementClass, hashCode, intersect, intersects, isEmpty, isMaxIncluded, isMinIncluded, subtract, toString, union
public DateRange(Date startTime, Date endTime)
startTime
- The start time (inclusive), or null
if none.endTime
- The end time (inclusive), or null
if none.public DateRange(Date startTime, boolean isMinIncluded, 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, Date origin) throws IncommensurableException
range
- The range to convert.origin
- The date to use as the origin.IncommensurableException
ConversionException
- if the given range doesn't have a unit compatible with milliseconds.public Date getMinValue()
getMinValue
in class Range<Date>
Range.getMinValue()
public Date getMaxValue()
getMaxValue
in class Range<Date>
Range.getMaxValue()
Copyright © 1996–2019 Geotools. All rights reserved.