public class DateTimeInterval extends Object
| Constructor and Description |
|---|
DateTimeInterval(IntervalType intervalType,
long lowerBound,
BoundType lowerBoundType,
long upperBound,
BoundType upperBoundType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsDateTime(DateTime dateTime) |
void |
enumerateDateTimes(Collection<Object> dateTimes) |
DateTimeInterval |
intersectWith(DateTimeInterval that)
Computes the intersection of this interval with the supplied one.
|
int |
subtractSizeFrom(int argument)
Subtracts from the given argument the number of distinct objects that are contained in this interval.
|
String |
toString() |
public DateTimeInterval(IntervalType intervalType, long lowerBound, BoundType lowerBoundType, long upperBound, BoundType upperBoundType)
intervalType - intervalTypelowerBound - lowerBoundlowerBoundType - lowerBoundTypeupperBound - upperBoundupperBoundType - upperBoundTypepublic DateTimeInterval intersectWith(DateTimeInterval that)
that - thatpublic int subtractSizeFrom(int argument)
argument - argumentpublic boolean containsDateTime(DateTime dateTime)
dateTime - dateTimepublic void enumerateDateTimes(Collection<Object> dateTimes)
dateTimes - dateTimesCopyright © 2020. All rights reserved.