public class DateTimeInterval
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected IntervalType |
m_intervalType |
protected long |
m_lowerBound |
protected BoundType |
m_lowerBoundType |
protected long |
m_upperBound |
protected BoundType |
m_upperBoundType |
| 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(java.util.Collection<java.lang.Object> dateTimes) |
DateTimeInterval |
intersectWith(DateTimeInterval that)
Computes the intersection of this interval with the supplied one.
|
protected boolean |
isEqual(IntervalType intervalType,
long lowerBound,
BoundType lowerBoundType,
long upperBound,
BoundType upperBoundType) |
protected static boolean |
isIntervalEmpty(IntervalType intervalType,
long lowerBound,
BoundType lowerBoundType,
long upperBound,
BoundType upperBoundType) |
int |
subtractSizeFrom(int argument)
Subtracts from the given argument the number of distinct objects that are contained in this interval.
|
java.lang.String |
toString() |
protected final IntervalType m_intervalType
protected final long m_lowerBound
protected final BoundType m_lowerBoundType
protected final long m_upperBound
protected final BoundType m_upperBoundType
public DateTimeInterval(IntervalType intervalType, long lowerBound, BoundType lowerBoundType, long upperBound, BoundType upperBoundType)
public DateTimeInterval intersectWith(DateTimeInterval that)
protected boolean isEqual(IntervalType intervalType, long lowerBound, BoundType lowerBoundType, long upperBound, BoundType upperBoundType)
public int subtractSizeFrom(int argument)
public boolean containsDateTime(DateTime dateTime)
public void enumerateDateTimes(java.util.Collection<java.lang.Object> dateTimes)
protected static boolean isIntervalEmpty(IntervalType intervalType, long lowerBound, BoundType lowerBoundType, long upperBound, BoundType upperBoundType)
public java.lang.String toString()
toString in class java.lang.Object